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:
parent
0b40d180de
commit
92a9311d8a
4 changed files with 49 additions and 19 deletions
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue