1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

Added Flask/Redis

Signed-off-by: ajeetraina <ajeetraina@gmail.com>
This commit is contained in:
ajeetraina 2022-03-07 11:45:07 +05:30
parent 99d423e7dd
commit 6d2816541c
17 changed files with 36 additions and 85 deletions

View file

@ -0,0 +1,7 @@
FROM python:3.7-alpine
WORKDIR /app
COPY requirements.txt /app
RUN pip3 install -r requirements.txt --no-cache-dir
COPY . /app
ENTRYPOINT ["python3"]
CMD ["app.py"]

9
flask-redis/app/app.py Normal file
View file

@ -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')

View file

@ -0,0 +1 @@
flask