We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c18bc8 commit 87c2aecCopy full SHA for 87c2aec
Dockerfile
@@ -17,10 +17,7 @@ RUN pip wheel --no-cache-dir --no-deps --wheel-dir ./wheels -r requirements.txt
17
18
FROM python:3.12-slim AS app
19
20
-# use non-root user
21
-RUN adduser --system --group --home /home/abc abc
22
-USER abc:abc
23
-WORKDIR /home/abc
+WORKDIR /app
24
25
# python
26
ENV PYTHONUNBUFFERED=1 \
@@ -35,6 +32,7 @@ COPY --from=builder /app/wheels ./wheels
35
32
COPY --from=builder /app/requirements.txt ./
36
33
37
34
RUN pip install --no-cache-dir ./wheels/*
+ENV PATH="/home/abc/.local/bin:${PATH}"
38
39
COPY ./src ./src
40
0 commit comments