Skip to content

Commit

Permalink
Remove dev dependencies from venv in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
cu committed Dec 26, 2024
1 parent 890e35b commit c166649
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@ FROM $PYTHON_IMAGE AS build
ARG UV_LINK_MODE=copy
ARG UV_COMPILE_BYTECODE=1
ARG UV_PYTHON_DOWNLOADS=never
ARG UV_LOCKED=1
ARG UV_PROJECT_ENVIRONMENT=/silicon/.venv

COPY --from=npm-install /staging /staging
WORKDIR /staging

RUN --mount=type=cache,target=/root/.cache <<EOS sh -ex
pip install uv
uv sync --locked --no-install-project
uv sync --no-install-project
TMP=/dev/shm uv run pytest
uv sync --no-install-project --no-group dev
mv LICENSE scripts silicon /silicon
mv entrypoint.sh /
EOS
Expand Down

0 comments on commit c166649

Please sign in to comment.