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 6e866bda0f
commit 6d97f7348f
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