File size: 478 Bytes
9216d3d
a215884
6b5ccb9
a215884
 
824e702
a215884
824e702
 
1a2008f
9216d3d
 
1a2008f
9216d3d
 
 
 
 
898b922
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10.15-slim-bullseye AS builder_image

RUN apt-get update && apt-get install -y git curl ffmpeg zip
RUN git config --global --add safe.directory /app
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install poetry \
  && poetry config virtualenvs.create false

WORKDIR /app

COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root

FROM builder_image AS release_image

COPY --from=builder_image /app /app
COPY . /app/

CMD [ "python3", "app.py" ]