Spaces:
Sleeping
Sleeping
Download Dockerfile from Syahhh01/Audio_Capst_detector: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/spaces/Syahhh01/Audio_Capst_detector/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Syahhh01/Audio_Capst_detector/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Syahhh01/Audio_Capst_detector/resolve/main/Dockerfile
655 Bytes
| # Menggunakan image Python 3.10 versi slim | |
| FROM python:3.10-slim | |
| # Menentukan direktori kerja | |
| WORKDIR /code | |
| # --- BAGIAN PENTING UNTUK AUDIO & CODEC --- | |
| # Menambahkan 'ffmpeg' ke dalam daftar instalasi | |
| RUN apt-get update && apt-get install -y \ | |
| libsndfile1 \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ------------------------------------------ | |
| # Menyalin file requirements | |
| COPY requirements.txt . | |
| # Menginstal dependensi Python | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Menyalin seluruh kode aplikasi | |
| COPY . . | |
| # Membuka port | |
| EXPOSE 7860 | |
| # Menjalankan aplikasi | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |