Spaces:
Sleeping
Sleeping
Download Dockerfile from OpenAPI-AI/ST-STTAPI: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/spaces/OpenAPI-AI/ST-STTAPI/resolve/dbec2cdb88bbefbd81d2273d9674d8ae6a29ce09/Dockerfile
- Command line
-
hf download hf://spaces/OpenAPI-AI/ST-STTAPI@dbec2cdb88bbefbd81d2273d9674d8ae6a29ce09/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/OpenAPI-AI/ST-STTAPI/resolve/dbec2cdb88bbefbd81d2273d9674d8ae6a29ce09/Dockerfile
557 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Устанавливаем системные зависимости для работы с аудио (soundfile/ffmpeg) | |
| RUN apt-get update && apt-get install -y libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/* | |
| # Копируем и устанавливаем python-зависимости | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Копируем код | |
| COPY app.py . | |
| # Порт, который слушает HF Spaces | |
| EXPOSE 7860 | |
| # Запуск API | |
| CMD ["python", "app.py"] |