Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -15,15 +15,15 @@ RUN mkdir -p /cache/huggingface && chown -R appuser:appgroup /cache/huggingface
|
|
15 |
# Set environment variable to point to the new cache directory
|
16 |
ENV HF_HOME=/cache/huggingface
|
17 |
|
|
|
|
|
|
|
|
|
18 |
USER root
|
19 |
|
20 |
# Install Python dependencies
|
21 |
RUN pip install --no-cache-dir -r requirements.txt
|
22 |
|
23 |
-
# Set the ownership of the entire /app directory
|
24 |
-
RUN chown -R appuser:appgroup /app
|
25 |
-
|
26 |
-
# Switch to the non-root user
|
27 |
USER appuser
|
28 |
|
29 |
# Expose the port that the application listens on
|
|
|
15 |
# Set environment variable to point to the new cache directory
|
16 |
ENV HF_HOME=/cache/huggingface
|
17 |
|
18 |
+
# Set the ownership of the entire /app directory and cache directory
|
19 |
+
RUN chown -R appuser:appgroup /app /cache/huggingface
|
20 |
+
|
21 |
+
# Switch to the non-root user
|
22 |
USER root
|
23 |
|
24 |
# Install Python dependencies
|
25 |
RUN pip install --no-cache-dir -r requirements.txt
|
26 |
|
|
|
|
|
|
|
|
|
27 |
USER appuser
|
28 |
|
29 |
# Expose the port that the application listens on
|