Spaces:
Sleeping
Sleeping
Download Dockerfile from factorstudios/trans: direct link, hf CLI and curl.
- Browser
- Download file 525 Bytes
-
https://huggingface.co/spaces/factorstudios/trans/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/factorstudios/trans/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/factorstudios/trans/resolve/main/Dockerfile
525 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install system dependencies for ffmpeg and audio processing | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY transcription_server.py . | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Run the application with uvicorn | |
| CMD ["uvicorn", "transcription_server:app", "--host", "0.0.0.0", "--port", "7860"] | |