Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
CHANGED
@@ -26,6 +26,19 @@ RUN groupadd -r appgroup && useradd -r -g appgroup appuser
|
|
26 |
# Create necessary directories
|
27 |
RUN mkdir -p /app/flask_sessions /app/uploads /app/data /app/JSON /app/Models /app/logs /tmp/matplotlib /tmp/transformers_cache
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
# Set permissions for app directories
|
30 |
RUN chown -R appuser:appgroup /app /tmp/matplotlib /tmp/transformers_cache \
|
31 |
&& chmod -R 755 /app /tmp/matplotlib /tmp/transformers_cache
|
|
|
26 |
# Create necessary directories
|
27 |
RUN mkdir -p /app/flask_sessions /app/uploads /app/data /app/JSON /app/Models /app/logs /tmp/matplotlib /tmp/transformers_cache
|
28 |
|
29 |
+
# Create directories for uploads and set permissions
|
30 |
+
RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads
|
31 |
+
|
32 |
+
# Create directories for data and set permissions
|
33 |
+
RUN mkdir -p /app/data && chmod -R 777 /app/data
|
34 |
+
|
35 |
+
# Create directories for JSON and set permissions
|
36 |
+
RUN mkdir -p /app/JSON && chmod -R 777 /app/JSON
|
37 |
+
|
38 |
+
# Create directories for Models and set permissions
|
39 |
+
RUN mkdir -p /app/Models && chmod -R 777 /app/Models
|
40 |
+
|
41 |
+
|
42 |
# Set permissions for app directories
|
43 |
RUN chown -R appuser:appgroup /app /tmp/matplotlib /tmp/transformers_cache \
|
44 |
&& chmod -R 755 /app /tmp/matplotlib /tmp/transformers_cache
|