Brief-Generator/backend/Dockerfile.prod
cami 6a3d510cad
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Change Dockerfiles and docker-compose file
The reason for this change is to reduce the image size for the different containers
2021-09-01 02:20:53 +02:00

19 lines
329 B
Text

FROM python:slim as base
RUN apt-get -y update && apt-get -y upgrade
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN pip install --prefix=/install -r /requirements.txt
FROM base
COPY --from=builder /install /usr/local
COPY /src /app
WORKDIR /app
CMD [ "flask", "run" ]