Download Dockerfile from Ravishankarsharma/speech-summary_api: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/spaces/Ravishankarsharma/speech-summary_api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ravishankarsharma/speech-summary_api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ravishankarsharma/speech-summary_api/resolve/main/Dockerfile
471 Bytes
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements.txt first (better caching) | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the entire app | |
| COPY . . | |
| # Create uploads folder with proper permissions | |
| RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the app with uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |