Skip to content

Commit 3316040

Browse files
committed
initial commit
1 parent 33f97ea commit 3316040

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Basic flask container
2+
3+
FROM fanoftal2/alpine-flask-base:1
4+
5+
ADD /app/ /home/app/
6+
WORKDIR /home/app/
7+
8+
EXPOSE 5000
9+
10+
ENTRYPOINT ["python", "app.py"]

app/app.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Basic flask container
2+
3+
from flask import Flask
4+
app = Flask(__name__)
5+
6+
@app.route('/')
7+
def home():
8+
return 'hello world'
9+
10+
if __name__ == '__main__':
11+
app.run()

0 commit comments

Comments
 (0)