Skip to content

Commit 1bc916d

Browse files
committed
build: run ensurepip before copying lock dependency files
1 parent b9afdd9 commit 1bc916d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ ENV PATH="/root/.local/bin/:$PATH"
3737
# Create a fake VERSION file, so that we don't break the cache because of a mismatch in that file
3838
RUN echo "v0.0.0" > VERSION
3939

40+
RUN UV_PROJECT_ENVIRONMENT=${VENV_PATH} uv venv
41+
RUN ${BIN_PATH}/python -m ensurepip
42+
4043
# Copy dependency files
4144
COPY uv.lock pyproject.toml ./
4245

4346
# Install dependencies using uv (only dependencies, not the project itself)
44-
RUN UV_PROJECT_ENVIRONMENT=${VENV_PATH} uv sync --frozen --all-extras --no-install-project --compile-bytecode
45-
RUN ${BIN_PATH}/python -m ensurepip
47+
RUN UV_PROJECT_ENVIRONMENT=${VENV_PATH} uv sync --inexact --frozen --all-extras --no-install-project --compile-bytecode
48+
4649
# --------------- `final` stage ---------------
4750
FROM base AS final
4851

0 commit comments

Comments
 (0)