Skip to content

Commit 16e8fbc

Browse files
committed
Do not install dev dependencies in production docker image
1 parent 4b657ee commit 16e8fbc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docker/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ RUN --mount=type=cache,target=/root/.cache/pip \
4949

5050
COPY ./pyproject.toml ./uv.lock ./
5151
RUN --mount=type=cache,target=/root/.cache/uv \
52-
uv sync --frozen --no-install-project --all-extras \
53-
&& python -m compileall -j 4 .venv
52+
uv sync \
53+
--frozen \
54+
--no-install-project \
55+
--all-extras \
56+
--no-default-groups \
57+
--compile-bytecode
5458

5559
FROM base AS prod
5660

0 commit comments

Comments
 (0)