Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
# Set working directory
|
|
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
# Install packages
|
|
@@ -11,5 +12,4 @@ RUN pip install --no-cache-dir \
|
|
| 11 |
huggingface_hub \
|
| 12 |
openai
|
| 13 |
|
| 14 |
-
|
| 15 |
-
CMD ["/bin/bash"]
|
|
|
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
# Set working directory
|
| 5 |
+
RUN useradd -m -u 1000 user
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
# Install packages
|
|
|
|
| 12 |
huggingface_hub \
|
| 13 |
openai
|
| 14 |
|
| 15 |
+
COPY --chown=user . /app
|
|
|