Skip to content

Commit 87c2aec

Browse files
committed
Fix Dockerfile (#54)
1 parent 5c18bc8 commit 87c2aec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ RUN pip wheel --no-cache-dir --no-deps --wheel-dir ./wheels -r requirements.txt
1717

1818
FROM python:3.12-slim AS app
1919

20-
# use non-root user
21-
RUN adduser --system --group --home /home/abc abc
22-
USER abc:abc
23-
WORKDIR /home/abc
20+
WORKDIR /app
2421

2522
# python
2623
ENV PYTHONUNBUFFERED=1 \
@@ -35,6 +32,7 @@ COPY --from=builder /app/wheels ./wheels
3532
COPY --from=builder /app/requirements.txt ./
3633

3734
RUN pip install --no-cache-dir ./wheels/*
35+
ENV PATH="/home/abc/.local/bin:${PATH}"
3836

3937
COPY ./src ./src
4038

0 commit comments

Comments
 (0)