Skip to content

Commit 4fc9610

Browse files
authored
💡 Add comments to Dockerfile with uv references (#1357)
1 parent 4b6fb7c commit 4fc9610

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ENV UV_COMPILE_BYTECODE=1
1919
ENV UV_LINK_MODE=copy
2020

2121
# Install dependencies
22+
# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers
2223
RUN --mount=type=cache,target=/root/.cache/uv \
2324
--mount=type=bind,source=uv.lock,target=uv.lock \
2425
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
@@ -32,6 +33,8 @@ COPY ./pyproject.toml ./uv.lock ./alembic.ini /app/
3233

3334
COPY ./app /app/app
3435

36+
# Sync the project
37+
# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers
3538
RUN --mount=type=cache,target=/root/.cache/uv \
3639
uv sync
3740

0 commit comments

Comments
 (0)