jasonanugrah commited on
Commit
564bd4b
·
verified ·
1 Parent(s): 4219ebe

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Instal FFmpeg (Wajib untuk 4K dan konversi MP3)
4
+ RUN apt-get update && \
5
+ apt-get install -y ffmpeg && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ # Setup folder kerja
9
+ WORKDIR /app
10
+
11
+ # Copy semua file ke dalam container
12
+ COPY . .
13
+
14
+ # Buat folder downloads dan beri izin tulis (PENTING di Hugging Face)
15
+ RUN mkdir -p downloads && chmod 777 downloads
16
+
17
+ # Install library python
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Jalankan aplikasi di port 7860 (Port wajib Hugging Face)
21
+ CMD ["python", "app.py"]