@@ -46,7 +46,7 @@ COPY --chown=nonroot:nonroot Makefile .
46
46
# Dev image, contains all files and dependencies
47
47
FROM base_builder AS dev
48
48
COPY --chown=nonroot:nonroot . .
49
- RUN --mount=type=cache,id=uv,target=~ /.cache/uv,sharing=locked \
49
+ RUN --mount=type=cache,id=uv,target=/home/nonroot /.cache/uv,sharing=locked \
50
50
make dev-dependencies
51
51
52
52
# Note that opentelemetry doesn't play well together with uvicorn reloader
@@ -55,22 +55,22 @@ CMD ["uvicorn", "http_app:create_app", "--host", "0.0.0.0", "--port", "8000", "-
55
55
56
56
# Installs requirements to run production dramatiq application
57
57
FROM base_builder AS dramatiq_builder
58
- RUN --mount=type=cache,id=uv,target=~ /.cache/uv,sharing=locked \
58
+ RUN --mount=type=cache,id=uv,target=/home/nonroot /.cache/uv,sharing=locked \
59
59
uv sync --no-dev --no-install-project --frozen --no-editable
60
60
61
61
# Installs requirements to run production http application
62
62
FROM base_builder AS http_builder
63
- RUN --mount=type=cache,id=uv,target=~ /.cache/uv,sharing=locked \
63
+ RUN --mount=type=cache,id=uv,target=/home/nonroot /.cache/uv,sharing=locked \
64
64
uv sync --no-dev --group http --no-install-project --frozen --no-editable
65
65
66
66
# Installs requirements to run production socketio application
67
67
FROM base_builder AS socketio_builder
68
- RUN --mount=type=cache,id=uv,target=~ /.cache/uv,sharing=locked \
68
+ RUN --mount=type=cache,id=uv,target=/home/nonroot /.cache/uv,sharing=locked \
69
69
uv sync --no-dev --group socketio --no-install-project --frozen --no-editable
70
70
71
71
# Installs requirements to run production migrations application
72
72
FROM base_builder AS migrations_builder
73
- RUN --mount=type=cache,target=~ /.cache/uv,sharing=locked \
73
+ RUN --mount=type=cache,target=/home/nonroot /.cache/uv,sharing=locked \
74
74
uv sync --no-dev --group migrations --no-install-project --frozen --no-editable
75
75
76
76
# Create the base app with the common python packages
0 commit comments