Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -26,7 +26,13 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
26 |
# Copy application files
|
27 |
COPY --chown=user . /app
|
28 |
|
|
|
|
|
|
|
|
|
29 |
# Switch to the non-root user
|
|
|
|
|
30 |
|
31 |
|
32 |
# Set environment variables
|
|
|
26 |
# Copy application files
|
27 |
COPY --chown=user . /app
|
28 |
|
29 |
+
|
30 |
+
# Create /temp directory and change its owner to the non-root user
|
31 |
+
RUN mkdir /temp && chown user:user /temp
|
32 |
+
|
33 |
# Switch to the non-root user
|
34 |
+
USER user
|
35 |
+
|
36 |
|
37 |
|
38 |
# Set environment variables
|