Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -17,6 +17,13 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 17 |
# Copy application files
|
| 18 |
COPY app.py .
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
# Expose port
|
| 21 |
EXPOSE 8000
|
| 22 |
|
|
|
|
| 17 |
# Copy application files
|
| 18 |
COPY app.py .
|
| 19 |
|
| 20 |
+
# Set environment variables for Hugging Face cache
|
| 21 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
| 22 |
+
ENV HF_HOME=/app/cache
|
| 23 |
+
|
| 24 |
+
# Create cache directory
|
| 25 |
+
RUN mkdir -p /app/cache
|
| 26 |
+
|
| 27 |
# Expose port
|
| 28 |
EXPOSE 8000
|
| 29 |
|