Skip to content

Commit 8904f97

Browse files
Fix packages being user-specific
1 parent 299338f commit 8904f97

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update \
1515

1616
# Install Python dependencies
1717
COPY requirements.txt .
18-
RUN pip install --no-cache-dir --user -r requirements.txt
18+
RUN pip install --no-cache-dir -r requirements.txt
1919

2020
# Runtime stage
2121
FROM python:3.13-slim
@@ -30,10 +30,8 @@ RUN apt-get update \
3030
&& rm -rf /var/lib/apt/lists/*
3131

3232
# 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
33+
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
34+
COPY --from=builder /usr/local/bin /usr/local/bin
3735

3836
COPY . .
3937

0 commit comments

Comments
 (0)