Spaces:
Runtime error
Runtime error
Download Dockerfile from MasteredUltraInstinct/FallbackLLM: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/MasteredUltraInstinct/FallbackLLM/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MasteredUltraInstinct/FallbackLLM/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MasteredUltraInstinct/FallbackLLM/resolve/main/Dockerfile
385 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # π Create custom cache directory with proper permissions | |
| RUN mkdir -p /app/cache | |
| # π Set TRANSFORMERS_CACHE permanently | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| COPY llm_service.py . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "llm_service:app", "--host", "0.0.0.0", "--port", "7860"] | |