mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2024-12-23 16:23:02 +03:00
выносит .venv в отдельный слой для оптимизации занимаемого места
This commit is contained in:
parent
827e6f6b44
commit
707ce28182
@ -16,6 +16,8 @@ RUN poetry lock && poetry install
|
|||||||
|
|
||||||
FROM python:3.12-slim as base
|
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
|
COPY --from=builder /app/src/altlinux /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -16,6 +16,8 @@ RUN poetry lock && poetry install
|
|||||||
|
|
||||||
FROM python:3.12-slim as base
|
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
|
COPY --from=builder /app/src/gnomik /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
Loading…
Reference in New Issue
Block a user