Skip to content

Commit 5153c31

Browse files
authored
build: refactor Dockerfile (#361)
Small refactoring changes. We can now get rid of `--inexact`.
1 parent 78da421 commit 5153c31

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ 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+
# Create venv
4041
RUN uv venv
41-
RUN ${BIN_PATH}/python -m ensurepip
4242

4343
# Copy dependency files
4444
COPY uv.lock pyproject.toml ./
4545

4646
# Install dependencies using uv (only dependencies, not the project itself)
47-
RUN uv sync --inexact --frozen --all-extras --no-install-project --compile-bytecode
47+
RUN uv sync --frozen --all-extras --no-install-project --compile-bytecode
48+
49+
# Make sure that pip is available
50+
RUN ${BIN_PATH}/python -m ensurepip
4851

4952
# --------------- `final` stage ---------------
5053
FROM base AS final

0 commit comments

Comments
 (0)