We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37542cf commit 04082c0Copy full SHA for 04082c0
1 file changed
backend/Dockerfile
@@ -23,6 +23,9 @@ RUN apt-get update && apt-get install -y \
23
# Install uv
24
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
25
26
+# Keep uv artifacts across builds to avoid re-downloading large wheels.
27
+ENV UV_CACHE_DIR=/root/.cache/uv
28
+
29
# Copy workspace files
30
COPY pyproject.toml uv.lock ./
31
COPY apps/ apps/
@@ -33,7 +36,8 @@ COPY scripts/ scripts/
33
36
RUN chmod +x scripts/*.sh 2>/dev/null || true
34
37
35
38
# Install dependencies
-RUN uv sync --all-packages --no-dev
39
+RUN --mount=type=cache,target=/root/.cache/uv \
40
+ uv sync --all-packages --no-dev
41
42
# Expose API port
43
EXPOSE 8000
0 commit comments