connect backend to db in nginx-flask-mysql

Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
Anca Iordache committed 2020-03-17 21:57:36 +01:00
1 parent 6e866bda0f
commit 6d97f7348f
4 files changed
+49 -19

No files matched your search

+4 -5
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