abangopera commited on
Commit
21095b4
·
verified ·
1 Parent(s): 0e6d39d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install ffmpeg & yt-dlp dependencies
4
+ RUN apt-get update && apt-get install -y ffmpeg wget curl \
5
+ && rm -rf /var/lib/apt/lists/*
6
+
7
+ # Install yt-dlp (via pip biar selalu update)
8
+ RUN pip install --no-cache-dir yt-dlp
9
+
10
+ # Set workdir
11
+ WORKDIR /code
12
+
13
+ # Copy requirements dan install Python dependencies
14
+ COPY requirements.txt /code/
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy semua source code
18
+ COPY . /code/
19
+
20
+ # Expose port Hugging Face default (7860)
21
+ EXPOSE 7860
22
+
23
+ # Run Flask app
24
+ CMD ["python", "app.py"]