Skip to content

Commit 99b799d

Browse files
committed
initial source drop
Signed-off-by: Toby Corbin <[email protected]>
1 parent d67a657 commit 99b799d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:3.7-alpine
2+
ADD . /code
3+
WORKDIR /code
4+
RUN chmod 644 /code/app.py
5+
RUN pip install flask
6+
CMD ["python", "app.py"]
7+
EXPOSE 5000

app.py

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

docker-compose.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: '3'
2+
services:
3+
web:
4+
build: .
5+
ports:
6+
- "5000:5000"

0 commit comments

Comments
 (0)