Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -14,11 +14,6 @@ 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 |
-
# 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 |
|
@@ -31,6 +26,11 @@ RUN mkdir -p /app/flask_sessions && chmod -R 777 /app/flask_sessions
|
|
31 |
# Create the app_error.log file and set write permissions
|
32 |
RUN touch /app/app_error.log && chmod 777 /app/app_error.log
|
33 |
|
|
|
|
|
|
|
|
|
|
|
34 |
# Copy the rest of the application code to /app
|
35 |
COPY . /app/
|
36 |
|
|
|
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 |
|
|
|
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 |
|