Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 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 \
|
|
@@ -12,7 +10,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
git && \
|
| 13 |
apt-get clean
|
| 14 |
|
| 15 |
-
# Buat symbolic link
|
| 16 |
RUN ln -s /usr/bin/python3 /usr/bin/python
|
| 17 |
|
| 18 |
# Set direktori kerja
|
|
@@ -21,6 +19,10 @@ WORKDIR /app
|
|
| 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
|
|
|
|
|
|
|
| 1 |
FROM node:20
|
| 2 |
|
| 3 |
# Instal Python, FFmpeg, dan dependensi lainnya
|
|
|
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
python3 \
|
| 6 |
python3-pip \
|
|
|
|
| 10 |
git && \
|
| 11 |
apt-get clean
|
| 12 |
|
| 13 |
+
# Buat symbolic link Python
|
| 14 |
RUN ln -s /usr/bin/python3 /usr/bin/python
|
| 15 |
|
| 16 |
# Set direktori kerja
|
|
|
|
| 19 |
# Clone repo
|
| 20 |
RUN git clone https://github.com/vakumah/DownloaderX.git .
|
| 21 |
|
| 22 |
+
# --- FIX BUG SYNTAX ERROR ---
|
| 23 |
+
# Menghapus teks "Invalid URL" yang nyasar di file facebook.js
|
| 24 |
+
RUN sed -i "s/mimetype: 'video\/mp4',Invalid URL/mimetype: 'video\/mp4',/g" src/features/facebook.js
|
| 25 |
+
|
| 26 |
# Instal dependensi bot
|
| 27 |
RUN npm install
|
| 28 |
RUN npm install express
|