Skip to content

Commit c166649

Browse files
committed
Remove dev dependencies from venv in docker image
1 parent 890e35b commit c166649

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ FROM $PYTHON_IMAGE AS build
1515
ARG UV_LINK_MODE=copy
1616
ARG UV_COMPILE_BYTECODE=1
1717
ARG UV_PYTHON_DOWNLOADS=never
18+
ARG UV_LOCKED=1
1819
ARG UV_PROJECT_ENVIRONMENT=/silicon/.venv
1920

2021
COPY --from=npm-install /staging /staging
2122
WORKDIR /staging
2223

2324
RUN --mount=type=cache,target=/root/.cache <<EOS sh -ex
2425
pip install uv
25-
uv sync --locked --no-install-project
26+
uv sync --no-install-project
2627
TMP=/dev/shm uv run pytest
28+
uv sync --no-install-project --no-group dev
2729
mv LICENSE scripts silicon /silicon
2830
mv entrypoint.sh /
2931
EOS

0 commit comments

Comments
 (0)