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

connect backend to db in nginx-flask-mysql

Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
Anca Iordache 2020-03-17 21:55:32 +01:00
parent 0b40d180de
commit 92a9311d8a
4 changed files with 49 additions and 19 deletions

View file

@ -1,10 +1,9 @@
FROM python:3.6-alpine3.7
EXPOSE 5000
FROM python:3.8-alpine
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
COPY requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/
COPY . /code/
ENV FLASK_APP hello.py
CMD flask run --host=0.0.0.0