Skip to content

Commit 6473a50

Browse files
authored
Recommend --locked over --frozen (matching uv docs) (#53)
1 parent 1a73bdd commit 6473a50

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ ENV UV_LINK_MODE=copy
1414
RUN --mount=type=cache,target=/root/.cache/uv \
1515
--mount=type=bind,source=uv.lock,target=uv.lock \
1616
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
17-
uv sync --frozen --no-install-project --no-dev
17+
uv sync --locked --no-install-project --no-dev
1818

1919
# Then, add the rest of the project source code and install it
2020
# Installing separately from its dependencies allows optimal layer caching
2121
COPY . /app
2222
RUN --mount=type=cache,target=/root/.cache/uv \
23-
uv sync --frozen --no-dev
23+
uv sync --locked --no-dev
2424

2525
# Place executables in the environment at the front of the path
2626
ENV PATH="/app/.venv/bin:$PATH"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ dependency, includes FastAPI as a dependency, and defines a `hello` entrypoint f
9191
To check that the environment is up-to-date after image builds:
9292

9393
```console
94-
$ ./run.sh uv sync --frozen
94+
$ ./run.sh uv sync --locked
9595
Audited 2 packages ...
9696
```
9797

multistage.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ WORKDIR /app
1515
RUN --mount=type=cache,target=/root/.cache/uv \
1616
--mount=type=bind,source=uv.lock,target=uv.lock \
1717
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
18-
uv sync --frozen --no-install-project --no-dev
18+
uv sync --locked --no-install-project --no-dev
1919
COPY . /app
2020
RUN --mount=type=cache,target=/root/.cache/uv \
21-
uv sync --frozen --no-dev
21+
uv sync --locked --no-dev
2222

2323

2424
# Then, use a final image without uv

standalone.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ WORKDIR /app
1717
RUN --mount=type=cache,target=/root/.cache/uv \
1818
--mount=type=bind,source=uv.lock,target=uv.lock \
1919
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
20-
uv sync --frozen --no-install-project --no-dev
20+
uv sync --locked --no-install-project --no-dev
2121
COPY . /app
2222
RUN --mount=type=cache,target=/root/.cache/uv \
23-
uv sync --frozen --no-dev
23+
uv sync --locked --no-dev
2424

2525
# Then, use a final image without uv
2626
FROM debian:bookworm-slim

0 commit comments

Comments
 (0)