Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -13,11 +13,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 13 |
# Copy the rest of the application into the container at /app
|
| 14 |
COPY . /app
|
| 15 |
|
| 16 |
-
# Create a cache directory for
|
| 17 |
-
RUN mkdir -p /app/
|
| 18 |
|
| 19 |
-
# Set environment variable for
|
| 20 |
-
ENV
|
| 21 |
|
| 22 |
# Expose port 7860
|
| 23 |
EXPOSE 7860
|
|
|
|
| 13 |
# Copy the rest of the application into the container at /app
|
| 14 |
COPY . /app
|
| 15 |
|
| 16 |
+
# Create a cache directory for Hugging Face
|
| 17 |
+
RUN mkdir -p /app/hf_cache
|
| 18 |
|
| 19 |
+
# Set environment variable for Hugging Face cache
|
| 20 |
+
ENV HF_HOME=/app/hf_cache
|
| 21 |
|
| 22 |
# Expose port 7860
|
| 23 |
EXPOSE 7860
|