Download Dockerfile from jebin2/STT: direct link, hf CLI and curl.
- Browser
- Download file 575 Bytes
-
https://huggingface.co/spaces/jebin2/STT/resolve/eec3fb00a0bd39176fde593e239b4c8ef4e454b2/Dockerfile
- Command line
-
hf download hf://spaces/jebin2/STT@eec3fb00a0bd39176fde593e239b4c8ef4e454b2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jebin2/STT/resolve/eec3fb00a0bd39176fde593e239b4c8ef4e454b2/Dockerfile
575 Bytes
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| git \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Create necessary directories | |
| RUN mkdir -p uploads temp_dir | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run only the Flask app (worker starts automatically on first upload) | |
| CMD ["python", "app.py"] |