Spaces:
Running
on
T4
Running
on
T4
Nikita
commited on
Commit
·
2c46e17
1
Parent(s):
fc466e0
ownership of /app repository
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -27,6 +27,10 @@ COPY static /app/static
|
|
27 |
COPY data /app/data
|
28 |
COPY tirex /app/tirex
|
29 |
|
|
|
|
|
|
|
|
|
30 |
# Expose the default port
|
31 |
EXPOSE 7860
|
32 |
|
|
|
27 |
COPY data /app/data
|
28 |
COPY tirex /app/tirex
|
29 |
|
30 |
+
# Change ownership of the /app directory to the container's non-root user.
|
31 |
+
# This is crucial to allow the application to create cache files and directories.
|
32 |
+
RUN chown -R jovyan:jovyan /app
|
33 |
+
|
34 |
# Expose the default port
|
35 |
EXPOSE 7860
|
36 |
|