We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299338f commit 8904f97Copy full SHA for 8904f97
Dockerfile
@@ -15,7 +15,7 @@ RUN apt-get update \
15
16
# Install Python dependencies
17
COPY requirements.txt .
18
-RUN pip install --no-cache-dir --user -r requirements.txt
+RUN pip install --no-cache-dir -r requirements.txt
19
20
# Runtime stage
21
FROM python:3.13-slim
@@ -30,10 +30,8 @@ RUN apt-get update \
30
&& rm -rf /var/lib/apt/lists/*
31
32
# Copy installed packages from builder stage
33
-COPY --from=builder /root/.local /root/.local
34
-
35
-# Make sure scripts in .local are usable:
36
-ENV PATH=/root/.local/bin:$PATH
+COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
+COPY --from=builder /usr/local/bin /usr/local/bin
37
38
COPY . .
39
0 commit comments