parent
56b4dc0cf9
commit
83a24f681f
@ -0,0 +1,6 @@
|
||||
FROM python:3.7-alpine
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
RUN pip3 install -r requirements.txt
|
||||
ENTRYPOINT ["python3"]
|
||||
CMD ["app.py"]
|
@ -0,0 +1,9 @@
|
||||
from flask import Flask
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
return "Hello World!"
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0')
|
@ -0,0 +1 @@
|
||||
flask
|
@ -0,0 +1,6 @@
|
||||
version: '3'
|
||||
services:
|
||||
web:
|
||||
build: app
|
||||
ports:
|
||||
- '5000:5000'
|
Loading…
Reference in New Issue