WebashalarForML commited on
Commit
c24bc14
1 Parent(s): 8372238

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -21,16 +21,11 @@ RUN python -m spacy download en_core_web_sm
21
  RUN mkdir -p /tmp/flask_sessions && chmod 777 /tmp/flask_sessions
22
 
23
  # Create flask_sessions directory and set permissions
24
- RUN mkdir -p /app/flask_sessions && chmod -R 777 /app/flask_sessions
25
 
26
  # Create the app_error.log file and set write permissions
27
  RUN touch /app/app_error.log && chmod 777 /app/app_error.log
28
 
29
- # Ensure the upload directory and app directory have the correct permissions
30
- RUN mkdir -p /app/uploads && \
31
- chmod -R 777 /app/uploads && \
32
- chmod -R 777 /app
33
-
34
  # Copy the rest of the application code to /app
35
  COPY . /app/
36
 
 
21
  RUN mkdir -p /tmp/flask_sessions && chmod 777 /tmp/flask_sessions
22
 
23
  # Create flask_sessions directory and set permissions
24
+ RUN mkdir -p /app/flask_sessions /app/uploads && chmod -R 777 /app/flask_sessions /app/uploads
25
 
26
  # Create the app_error.log file and set write permissions
27
  RUN touch /app/app_error.log && chmod 777 /app/app_error.log
28
 
 
 
 
 
 
29
  # Copy the rest of the application code to /app
30
  COPY . /app/
31