Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -19,7 +19,7 @@ RUN chmod -R 777 /app/.cache
|
|
19 |
RUN chmod -R 777 /app
|
20 |
|
21 |
# Give write permissions to the /data directory
|
22 |
-
RUN chmod -R 777 /app/data
|
23 |
|
24 |
# Create /app/logs directory and set permissions for logging
|
25 |
RUN mkdir -p /app/logs && chmod -R 777 /app/logs
|
@@ -41,7 +41,7 @@ COPY requirements.txt /app/
|
|
41 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
42 |
|
43 |
# Create directories for session storage, uploads, and cache
|
44 |
-
|
45 |
|
46 |
# Copy the rest of the application code to /app
|
47 |
COPY . /app/
|
|
|
19 |
RUN chmod -R 777 /app
|
20 |
|
21 |
# Give write permissions to the /data directory
|
22 |
+
#RUN chmod -R 777 /app/data
|
23 |
|
24 |
# Create /app/logs directory and set permissions for logging
|
25 |
RUN mkdir -p /app/logs && chmod -R 777 /app/logs
|
|
|
41 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
42 |
|
43 |
# Create directories for session storage, uploads, and cache
|
44 |
+
RUN mkdir -p /app/flask_sessions /app/uploads /app/JSON /app/Models /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /app/JSON /app/data /app/Models /tmp/matplotlib /tmp/transformers_cache
|
45 |
|
46 |
# Copy the rest of the application code to /app
|
47 |
COPY . /app/
|