mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
add nginx-flask-mysql application sample
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
parent
8bb4e23e28
commit
a410c8bc62
7 changed files with 60 additions and 0 deletions
10
samples/nginx-flask-mysql/backend/Dockerfile
Executable file
10
samples/nginx-flask-mysql/backend/Dockerfile
Executable file
|
@ -0,0 +1,10 @@
|
|||
FROM python:3.6-alpine3.7
|
||||
EXPOSE 5000
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
RUN mkdir /code
|
||||
WORKDIR /code
|
||||
ADD requirements.txt /code/
|
||||
RUN pip install -r requirements.txt
|
||||
ADD . /code/
|
||||
ENV FLASK_APP hello.py
|
||||
CMD flask run --host=0.0.0.0
|
Loading…
Add table
Add a link
Reference in a new issue