Spaces:
Runtime error
Runtime error
Download Dockerfile from rabindra-sss/SentimentPro_API: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/rabindra-sss/SentimentPro_API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rabindra-sss/SentimentPro_API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rabindra-sss/SentimentPro_API/resolve/main/Dockerfile
409 Bytes
| FROM python:3.12-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy your application code | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install -r requirements.txt | |
| # Create and set the cache directory for Hugging Face | |
| ENV HF_HOME=/app/cache | |
| RUN mkdir -p /app/cache && chmod -R 777 /app/cache | |
| # Expose the port | |
| EXPOSE 8000 | |
| # Run the application | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |