выносит .venv в отдельный слой для оптимизации занимаемого места

This commit is contained in:
Maxim Slipenko 2024-08-19 11:54:03 +03:00
parent 827e6f6b44
commit 707ce28182
No known key found for this signature in database
GPG Key ID: 6DEA9FA7DE98C7D6
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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