19 lines
329 B
Text
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" ]
|