Download Dockerfile from ZeloTech/zelotech: direct link, hf CLI and curl.
- Browser
- Download file 818 Bytes
-
https://huggingface.co/spaces/ZeloTech/zelotech/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ZeloTech/zelotech/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ZeloTech/zelotech/resolve/main/Dockerfile
818 Bytes
| FROM python:3.12-slim | |
| # Dependencias de sistema: | |
| # ffmpeg -> decodifica o opus/ogg do WhatsApp (e demais formatos) | |
| # tesseract-ocr -> motor de OCR | |
| # tesseract-ocr-por -> pacote de idioma portugues | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg \ | |
| tesseract-ocr \ | |
| tesseract-ocr-por \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Em producao, descomente para embutir os pesos na imagem e nao depender | |
| # do HF Hub em runtime (evita cold start lento e chamadas de saida): | |
| # RUN python -c "from faster_whisper import WhisperModel; WhisperModel('large-v3', compute_type='int8')" | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |