@@ -14,8 +14,8 @@ RUN mkdir /venv && chown nonroot:nonroot /venv
14
14
ENV PATH="/venv/bin:$PATH"
15
15
16
16
# 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 \
19
19
apt-get update \
20
20
&& apt-get install -y --no-install-recommends \
21
21
make
@@ -28,8 +28,8 @@ ENV UV_LINK_MODE=copy
28
28
29
29
# Install build system requirements (gcc, library headers, etc.)
30
30
# 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 \
33
33
apt-get update \
34
34
&& apt-get install -y --no-install-recommends \
35
35
build-essential gcc git
@@ -47,7 +47,7 @@ COPY --chown=nonroot:nonroot Makefile .
47
47
# Dev image, contains all files and dependencies
48
48
FROM base_builder AS dev
49
49
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 \
51
51
make dev-dependencies
52
52
53
53
# 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", "-
56
56
57
57
# Installs requirements to run production dramatiq application
58
58
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 \
60
60
uv sync --no-dev --no-install-project --frozen --no-editable
61
61
62
62
# Installs requirements to run production http application
63
63
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 \
65
65
uv sync --no-dev --group http --no-install-project --frozen --no-editable
66
66
67
67
# Installs requirements to run production socketio application
68
68
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 \
70
70
uv sync --no-dev --group socketio --no-install-project --frozen --no-editable
71
71
72
72
# Installs requirements to run production migrations application
0 commit comments