Skip to content

Commit 905df5b

Browse files
author
James Lee
committed
initial commit
0 parents  commit 905df5b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:3.5
2+
RUN pip install Flask==0.11.1
3+
RUN useradd -ms /bin/bash admin
4+
USER admin
5+
WORKDIR /app
6+
COPY app /app
7+
CMD ["python", "app.py"]

app/app.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from flask import Flask
2+
app = Flask(__name__)
3+
4+
@app.route('/')
5+
def hello_world():
6+
return 'Hello, World!'
7+
8+
if __name__ == '__main__':
9+
app.run(host='0.0.0.0')

0 commit comments

Comments
 (0)