Skip to content

Commit ae53877

Browse files
committed
Remove cache ids
1 parent a626316 commit ae53877

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ RUN mkdir /venv && chown nonroot:nonroot /venv
1414
ENV PATH="/venv/bin:$PATH"
1515

1616
# Install necessary runtime libraries (e.g. libmysql)
17-
RUN --mount=type=cache,id=apt-cache,target=/var/cache/apt,sharing=locked \
18-
--mount=type=cache,id=apt-lib,target=/var/lib/apt,sharing=locked \
17+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
18+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
1919
apt-get update \
2020
&& apt-get install -y --no-install-recommends \
2121
make
@@ -28,8 +28,8 @@ ENV UV_LINK_MODE=copy
2828

2929
# Install build system requirements (gcc, library headers, etc.)
3030
# for compiled Python requirements like psycopg2
31-
RUN --mount=type=cache,id=apt-cache,target=/var/cache/apt,sharing=locked \
32-
--mount=type=cache,id=apt-lib,target=/var/lib/apt,sharing=locked \
31+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
32+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
3333
apt-get update \
3434
&& apt-get install -y --no-install-recommends \
3535
build-essential gcc git
@@ -47,7 +47,7 @@ COPY --chown=nonroot:nonroot Makefile .
4747
# Dev image, contains all files and dependencies
4848
FROM base_builder AS dev
4949
COPY --chown=nonroot:nonroot . .
50-
RUN --mount=type=cache,id=uv,target=/home/nonroot/.cache/uv,sharing=locked,uid=$UID,gid=$GID \
50+
RUN --mount=type=cache, target=/home/nonroot/.cache/uv,sharing=locked,uid=$UID,gid=$GID \
5151
make dev-dependencies
5252

5353
# Note that opentelemetry doesn't play well together with uvicorn reloader
@@ -56,17 +56,17 @@ CMD ["uvicorn", "http_app:create_app", "--host", "0.0.0.0", "--port", "8000", "-
5656

5757
# Installs requirements to run production dramatiq application
5858
FROM base_builder AS dramatiq_builder
59-
RUN --mount=type=cache,id=uv,target=/home/nonroot/.cache/uv,sharing=locked,uid=$UID,gid=$GID \
59+
RUN --mount=type=cache,target=/home/nonroot/.cache/uv,sharing=locked,uid=$UID,gid=$GID \
6060
uv sync --no-dev --no-install-project --frozen --no-editable
6161

6262
# Installs requirements to run production http application
6363
FROM base_builder AS http_builder
64-
RUN --mount=type=cache,id=uv,target=/home/nonroot/.cache/uv,sharing=locked,uid=$UID,gid=$GID \
64+
RUN --mount=type=cache,target=/home/nonroot/.cache/uv,sharing=locked,uid=$UID,gid=$GID \
6565
uv sync --no-dev --group http --no-install-project --frozen --no-editable
6666

6767
# Installs requirements to run production socketio application
6868
FROM base_builder AS socketio_builder
69-
RUN --mount=type=cache,id=uv,target=/home/nonroot/.cache/uv,sharing=locked,uid=$UID,gid=$GID \
69+
RUN --mount=type=cache,target=/home/nonroot/.cache/uv,sharing=locked,uid=$UID,gid=$GID \
7070
uv sync --no-dev --group socketio --no-install-project --frozen --no-editable
7171

7272
# Installs requirements to run production migrations application

0 commit comments

Comments
 (0)