awesome-compose/flask/app/Dockerfile
Andy Madge a42a8531ab
Added --no-cache-dir option to all Python pip commands in Dockerfiles (#113)
The cache gives no benefit to a Docker image but it does add size, hence it's best left out.

Signed-off-by: Andy Madge <andymadge@gmail.com>
2021-03-22 10:01:41 +01:00

8 lines
169 B
Docker

FROM python:3.7-alpine
WORKDIR /app
COPY requirements.txt /app
RUN pip3 install -r requirements.txt --no-cache-dir
COPY . /app
ENTRYPOINT ["python3"]
CMD ["app.py"]