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