Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -9,6 +9,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 9 |
# Copy all files
|
| 10 |
COPY . .
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Optional: avoid using cached Hugging Face models in root directory
|
| 13 |
ENV TRANSFORMERS_CACHE=/app/cache
|
| 14 |
ENV HF_HOME=/app/cache
|
|
@@ -21,5 +24,3 @@ EXPOSE 7860
|
|
| 21 |
|
| 22 |
# Start server
|
| 23 |
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"]
|
| 24 |
-
|
| 25 |
-
|
|
|
|
| 9 |
# Copy all files
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
+
# Create instance directory with proper permissions
|
| 13 |
+
RUN mkdir -p /app/instance && chmod 777 /app/instance
|
| 14 |
+
|
| 15 |
# Optional: avoid using cached Hugging Face models in root directory
|
| 16 |
ENV TRANSFORMERS_CACHE=/app/cache
|
| 17 |
ENV HF_HOME=/app/cache
|
|
|
|
| 24 |
|
| 25 |
# Start server
|
| 26 |
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"]
|
|
|
|
|
|