From 707ce2818210557fe90bf743416f1ad28188a66f Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 19 Aug 2024 11:54:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=8B=D0=BD=D0=BE=D1=81=D0=B8=D1=82=20.v?= =?UTF-8?q?env=20=D0=B2=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D1=81=D0=BB=D0=BE=D0=B9=20=D0=B4=D0=BB=D1=8F=20=D0=BE?= =?UTF-8?q?=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BD=D0=B8=D0=BC=D0=B0=D0=B5=D0=BC=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=BC=D0=B5=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/altlinux/Dockerfile | 2 ++ src/gnomik/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/altlinux/Dockerfile b/src/altlinux/Dockerfile index 8a1f469..21ce32c 100644 --- a/src/altlinux/Dockerfile +++ b/src/altlinux/Dockerfile @@ -16,6 +16,8 @@ RUN poetry lock && poetry install FROM python:3.12-slim as base +# Copy the virtual environment separately to improve caching +COPY --from=builder /app/src/gnomik/.venv /app/.venv COPY --from=builder /app/src/altlinux /app WORKDIR /app diff --git a/src/gnomik/Dockerfile b/src/gnomik/Dockerfile index 60edda9..e3c7492 100644 --- a/src/gnomik/Dockerfile +++ b/src/gnomik/Dockerfile @@ -16,6 +16,8 @@ RUN poetry lock && poetry install FROM python:3.12-slim as base +# Copy the virtual environment separately to improve caching +COPY --from=builder /app/src/gnomik/.venv /app/.venv COPY --from=builder /app/src/gnomik /app WORKDIR /app