Kompres commited on
Commit
a387aeb
·
verified ·
1 Parent(s): 2ab8428

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18
2
+
3
+ # Instal FFmpeg dan dependensi sistem yang dibutuhkan bot
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ imagemagick \
7
+ webp \
8
+ git && \
9
+ apt-get clean
10
+
11
+ # Set direktori kerja
12
+ WORKDIR /app
13
+
14
+ # Clone repo kamu (Sesuaikan jika repo privat, tapi ini publik kan?)
15
+ RUN git clone https://github.com/vakumah/DownloaderX.git .
16
+
17
+ # Instal dependensi bot + express untuk keep-alive
18
+ RUN npm install
19
+ RUN npm install express
20
+
21
+ # HF Spaces wajib jalan di port 7860
22
+ ENV PORT=7860
23
+ EXPOSE 7860
24
+
25
+ # Jalankan bot
26
+ CMD ["node", "index.js"]