Spaces:
Configuration error
Configuration error
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -3,6 +3,8 @@ FROM python:3.10-slim
|
|
| 3 |
# Set environment variables
|
| 4 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 5 |
ENV PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Set work directory
|
| 8 |
WORKDIR /code
|
|
@@ -18,8 +20,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 18 |
# Copy project files
|
| 19 |
COPY . /code/
|
| 20 |
|
| 21 |
-
# Expose port
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
# Run the app
|
| 25 |
-
CMD ["python", "app.py"]
|
|
|
|
| 3 |
# Set environment variables
|
| 4 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 5 |
ENV PYTHONUNBUFFERED=1
|
| 6 |
+
ENV HF_HOME=/code/.cache/huggingface
|
| 7 |
+
ENV TRANSFORMERS_CACHE=/code/.cache/huggingface
|
| 8 |
|
| 9 |
# Set work directory
|
| 10 |
WORKDIR /code
|
|
|
|
| 20 |
# Copy project files
|
| 21 |
COPY . /code/
|
| 22 |
|
| 23 |
+
# Expose port
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
# Run the app
|
| 27 |
+
CMD ["python", "app.py"]
|