Brief-Generator/backend/Dockerfile.prod

20 lines
329 B
Text
Raw Normal View History

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