Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
@@ -81,14 +81,12 @@ RUN pip install --no-cache-dir --verbose -r requirements.txt
|
|
81 |
|
82 |
# Set a writable cache directory
|
83 |
ENV TRANSFORMERS_CACHE=/app/cache
|
84 |
-
|
85 |
-
ENV NUMBA_DISABLE_JIT=1
|
86 |
-
|
87 |
-
|
88 |
-
# Set writable cache directory using HF_HOME
|
89 |
ENV HF_HOME=/app/cache
|
90 |
-
RUN mkdir -p /app/cache
|
91 |
|
|
|
|
|
|
|
92 |
|
93 |
# Download NLTK data
|
94 |
RUN python -m nltk.downloader punkt
|
@@ -96,6 +94,6 @@ RUN python -m nltk.downloader punkt
|
|
96 |
# Copy your application files
|
97 |
COPY app.py .
|
98 |
|
99 |
-
#
|
100 |
ENTRYPOINT ["python", "app.py"]
|
101 |
CMD []
|
|
|
81 |
|
82 |
# Set a writable cache directory
|
83 |
ENV TRANSFORMERS_CACHE=/app/cache
|
|
|
|
|
|
|
|
|
|
|
84 |
ENV HF_HOME=/app/cache
|
85 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
86 |
|
87 |
+
# Set writable Matplotlib config directory
|
88 |
+
ENV MPLCONFIGDIR=/app/cache/matplotlib
|
89 |
+
RUN mkdir -p $MPLCONFIGDIR && chmod -R 777 $MPLCONFIGDIR
|
90 |
|
91 |
# Download NLTK data
|
92 |
RUN python -m nltk.downloader punkt
|
|
|
94 |
# Copy your application files
|
95 |
COPY app.py .
|
96 |
|
97 |
+
# Set ENTRYPOINT and CMD
|
98 |
ENTRYPOINT ["python", "app.py"]
|
99 |
CMD []
|