Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -35,10 +35,8 @@ ENV LLVM_CONFIG=/usr/bin/llvm-config-14
|
|
35 |
RUN pip install --no-cache-dir numpy==1.22.4
|
36 |
|
37 |
# Install the rest of the dependencies and the SpaCy model
|
38 |
-
|
39 |
-
|
40 |
-
# Adding spacy download here to keep build clean
|
41 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
42 |
|
43 |
# Create necessary directories with appropriate permissions
|
44 |
RUN mkdir -p /app/cache /app/uploads /app/results /app/checkpoints /app/temp \
|
@@ -51,6 +49,9 @@ RUN chmod -R 777 /app
|
|
51 |
# This should be done AFTER all dependencies are installed
|
52 |
COPY . /app/
|
53 |
|
|
|
|
|
|
|
54 |
# Expose the port the app runs on
|
55 |
EXPOSE 7860
|
56 |
|
|
|
35 |
RUN pip install --no-cache-dir numpy==1.22.4
|
36 |
|
37 |
# Install the rest of the dependencies and the SpaCy model
|
38 |
+
RUN pip install --no-cache-dir -r requirements.txt && \
|
39 |
+
python -m spacy download en_core_web_sm
|
|
|
|
|
40 |
|
41 |
# Create necessary directories with appropriate permissions
|
42 |
RUN mkdir -p /app/cache /app/uploads /app/results /app/checkpoints /app/temp \
|
|
|
49 |
# This should be done AFTER all dependencies are installed
|
50 |
COPY . /app/
|
51 |
|
52 |
+
# Disable Numba's on-disk caching (often problematic in containers)
|
53 |
+
ENV NUMBA_DISABLE_PER_FILE_CACHE=1
|
54 |
+
|
55 |
# Expose the port the app runs on
|
56 |
EXPOSE 7860
|
57 |
|