Audio_Capst_detector / Dockerfile
Syahhh01's picture
Update Dockerfile
75b6f7b verified
raw
history blame contribute delete
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"]