awesome-compose/nginx-flask-mysql/backend/Dockerfile
Anca Iordache 6d97f7348f connect backend to db in nginx-flask-mysql
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
2020-03-17 21:57:36 +01:00

9 lines
192 B
Docker
Executable File

FROM python:3.8-alpine
ENV PYTHONUNBUFFERED 1
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY . /code/
ENV FLASK_APP hello.py
CMD flask run --host=0.0.0.0