Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -29,6 +29,12 @@ COPY script.js .
|
|
| 29 |
# Create necessary directories
|
| 30 |
RUN mkdir -p downloads
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# Expose port
|
| 33 |
EXPOSE 7860
|
| 34 |
|
|
|
|
| 29 |
# Create necessary directories
|
| 30 |
RUN mkdir -p downloads
|
| 31 |
|
| 32 |
+
RUN chmod -R 777 /app
|
| 33 |
+
|
| 34 |
+
# Ensure the app runs as the same user as the Space UI
|
| 35 |
+
RUN useradd -m -u 1000 user
|
| 36 |
+
USER user
|
| 37 |
+
|
| 38 |
# Expose port
|
| 39 |
EXPOSE 7860
|
| 40 |
|