Spaces:
Sleeping
Sleeping
Commit ·
9b911d6
1
Parent(s): f8fb96c
Enhance Dockerfile by adding a non-root user, updating the PATH environment variable, and setting the working directory to /app.
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -20,7 +20,11 @@
|
|
| 20 |
|
| 21 |
FROM python:3.13-slim
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
COPY pyproject.toml uv.lock ./
|
| 26 |
|
|
|
|
| 20 |
|
| 21 |
FROM python:3.13-slim
|
| 22 |
|
| 23 |
+
RUN useradd -m -u 1000 user
|
| 24 |
+
USER user
|
| 25 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
| 26 |
+
|
| 27 |
+
WORKDIR /app
|
| 28 |
|
| 29 |
COPY pyproject.toml uv.lock ./
|
| 30 |
|