Spaces:
Running
Running
Commit ·
6fa522e
1
Parent(s): 6cb6e22
Add cache directory
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -4,10 +4,12 @@ FROM python:3.9-slim
|
|
| 4 |
# Environment variables to prevent Python from writing pyc files and buffering stdout/stderr
|
| 5 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 6 |
ENV PYTHONUNBUFFERED=1
|
| 7 |
-
|
| 8 |
# Set working directory inside the container
|
| 9 |
WORKDIR /app
|
| 10 |
|
|
|
|
|
|
|
| 11 |
# Copy and install the backend requirements
|
| 12 |
COPY backend/requirements.txt /app/backend/requirements.txt
|
| 13 |
RUN pip install --upgrade pip
|
|
|
|
| 4 |
# Environment variables to prevent Python from writing pyc files and buffering stdout/stderr
|
| 5 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 6 |
ENV PYTHONUNBUFFERED=1
|
| 7 |
+
ENV TRANSFORMERS_CACHE=/app/.cache
|
| 8 |
# Set working directory inside the container
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
+
RUN mkdir -p /app/.cache
|
| 12 |
+
|
| 13 |
# Copy and install the backend requirements
|
| 14 |
COPY backend/requirements.txt /app/backend/requirements.txt
|
| 15 |
RUN pip install --upgrade pip
|