Kompres commited on
Commit
4193fa1
·
verified ·
1 Parent(s): dd5f0c2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -3
Dockerfile CHANGED
@@ -1,21 +1,27 @@
1
- # Gunakan Node.js
2
  FROM node:20
3
 
4
- # Instal FFmpeg dan dependensi sistem
 
5
  RUN apt-get update && apt-get install -y \
 
 
6
  ffmpeg \
7
  imagemagick \
8
  webp \
9
  git && \
10
  apt-get clean
11
 
 
 
 
12
  # Set direktori kerja
13
  WORKDIR /app
14
 
15
  # Clone repo
16
  RUN git clone https://github.com/vakumah/DownloaderX.git .
17
 
18
- # Instal dependensi (sekarang sudah pakai Node 20, jadi aman)
19
  RUN npm install
20
  RUN npm install express
21
 
 
1
+ # Gunakan Node.js 20
2
  FROM node:20
3
 
4
+ # Instal Python, FFmpeg, dan dependensi lainnya
5
+ # yt-dlp-exec membutuhkan python3 agar bisa berjalan
6
  RUN apt-get update && apt-get install -y \
7
+ python3 \
8
+ python3-pip \
9
  ffmpeg \
10
  imagemagick \
11
  webp \
12
  git && \
13
  apt-get clean
14
 
15
+ # Buat symbolic link agar perintah 'python' mengarah ke 'python3'
16
+ RUN ln -s /usr/bin/python3 /usr/bin/python
17
+
18
  # Set direktori kerja
19
  WORKDIR /app
20
 
21
  # Clone repo
22
  RUN git clone https://github.com/vakumah/DownloaderX.git .
23
 
24
+ # Instal dependensi bot
25
  RUN npm install
26
  RUN npm install express
27