Spaces:
Runtime error
Runtime error
Download Dockerfile from nampham1106/backend: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/spaces/nampham1106/backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nampham1106/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nampham1106/backend/resolve/main/Dockerfile
566 Bytes
| FROM nampham11062002/chatbot-api | |
| # Create cache directory and set permissions | |
| RUN mkdir -p /app/.cache/huggingface/hub && \ | |
| chmod -R 777 /app/.cache | |
| # Set environment variables for Hugging Face cache | |
| ENV HF_HOME=/app/.cache/huggingface | |
| ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub | |
| ENV HF_DATASETS_CACHE=/app/.cache/huggingface/datasets | |
| # Create and set permissions for Opik config directory | |
| RUN mkdir -p /app/.opik && \ | |
| chmod -R 777 /app/.opik | |
| ENV OPIK_CONFIG_DIR=/app/.opik | |
| EXPOSE 7860 | |
| CMD ["/app/.venv/bin/python", "-m", "src.infastructure.api"] |