monikahung's picture
Update dockerfile
95afea0
raw
history blame contribute delete
636 Bytes
# Gunakan image Python 3.10 dasar
FROM python:3.10
# Atur direktori kerja di dalam container
WORKDIR /app
# Instal FFmpeg dari repositori sistem
RUN apt-get update && apt-get install -y ffmpeg
# Setel variabel lingkungan untuk direktori cache Hugging Face ke /tmp
# /tmp adalah direktori yang dapat ditulis oleh semua pengguna
ENV HF_HOME /tmp/.cache/huggingface
# Salin file requirements.txt dan instal dependensi Python
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Salin skrip aplikasi
COPY app.py .
# Perintah untuk menjalankan aplikasi Gradio saat container diluncurkan
CMD ["python", "app.py"]