Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
@@ -25,12 +25,11 @@ RUN apt-get update && \
|
|
25 |
RUN pip install --no-cache-dir numpy
|
26 |
|
27 |
# Install the rest of the dependencies and the SpaCy model in a single layer to optimize image size
|
28 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
29 |
-
python -m spacy download en_core_web_sm
|
30 |
|
31 |
# Create necessary directories with appropriate permissions
|
32 |
-
RUN mkdir -p /
|
33 |
-
|
34 |
|
35 |
# Ensure all relevant directories have the correct permissions
|
36 |
RUN chmod -R 777 /app
|
@@ -38,11 +37,6 @@ RUN chmod -R 777 /app
|
|
38 |
# Copy the rest of the application code to /app
|
39 |
COPY . /app/
|
40 |
|
41 |
-
# Ensure the upload directory and app directory have the correct permissions
|
42 |
-
RUN mkdir -p /app/uploads && \
|
43 |
-
chmod -R 777 /app/uploads && \
|
44 |
-
chmod -R 777 /app
|
45 |
-
|
46 |
# Expose the port the app runs on
|
47 |
EXPOSE 7860
|
48 |
|
|
|
25 |
RUN pip install --no-cache-dir numpy
|
26 |
|
27 |
# Install the rest of the dependencies and the SpaCy model in a single layer to optimize image size
|
28 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
29 |
|
30 |
# Create necessary directories with appropriate permissions
|
31 |
+
RUN mkdir -p /app/cache /app/uploads /app/results /app/checkpoints /app/temp \
|
32 |
+
&& chmod -R 777 /app/cache /app/uploads /app/results /app/checkpoints /app/temp
|
33 |
|
34 |
# Ensure all relevant directories have the correct permissions
|
35 |
RUN chmod -R 777 /app
|
|
|
37 |
# Copy the rest of the application code to /app
|
38 |
COPY . /app/
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
# Expose the port the app runs on
|
41 |
EXPOSE 7860
|
42 |
|