WebashalarForML commited on
Commit
caa92d4
·
verified ·
1 Parent(s): 5566850

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -14,6 +14,11 @@ COPY requirements.txt /app/
14
  # Install any needed packages specified in requirements.txt
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
 
 
 
 
17
  # Install SpaCy model directly in Dockerfile after installing SpaCy
18
  RUN python -m spacy download en_core_web_sm
19
 
@@ -29,11 +34,6 @@ RUN touch /app/app_error.log && chmod 777 /app/app_error.log
29
  # Copy the rest of the application code to /app
30
  COPY . /app/
31
 
32
- # Ensure the upload directory and app directory have the correct permissions
33
- RUN mkdir -p /app/uploads && \
34
- chmod -R 777 /app/uploads && \
35
- chmod -R 777 /app
36
-
37
  # Expose the port that the app runs on
38
  EXPOSE 7860
39
 
 
14
  # Install any needed packages specified in requirements.txt
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Ensure the upload directory and app directory have the correct permissions
18
+ RUN mkdir -p /app/uploads && \
19
+ chmod -R 777 /app/uploads && \
20
+ chmod -R 777 /app
21
+
22
  # Install SpaCy model directly in Dockerfile after installing SpaCy
23
  RUN python -m spacy download en_core_web_sm
24
 
 
34
  # Copy the rest of the application code to /app
35
  COPY . /app/
36
 
 
 
 
 
 
37
  # Expose the port that the app runs on
38
  EXPOSE 7860
39