Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -14,10 +14,13 @@ RUN apt-get update && apt-get install -y \
|
|
| 14 |
# Set environment variables for better performance
|
| 15 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 16 |
ENV PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Copy requirements and install Python packages
|
| 19 |
COPY requirements.txt .
|
| 20 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 21 |
|
| 22 |
# Copy application code
|
| 23 |
COPY . .
|
|
|
|
| 14 |
# Set environment variables for better performance
|
| 15 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 16 |
ENV PYTHONUNBUFFERED=1
|
| 17 |
+
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
| 18 |
+
|
| 19 |
|
| 20 |
# Copy requirements and install Python packages
|
| 21 |
COPY requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
+
RUN mkdir -p /tmp/numba_cache && chmod -R 777 /tmp/numba_cache
|
| 24 |
|
| 25 |
# Copy application code
|
| 26 |
COPY . .
|