Download Dockerfile from Kompres/Bot: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/spaces/Kompres/Bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Kompres/Bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Kompres/Bot/resolve/main/Dockerfile
757 Bytes
| FROM node:20 | |
| # Instal Python, FFmpeg, dan dependensi lainnya | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| ffmpeg \ | |
| imagemagick \ | |
| webp \ | |
| git && \ | |
| apt-get clean | |
| # Buat symbolic link Python | |
| RUN ln -s /usr/bin/python3 /usr/bin/python | |
| # Set direktori kerja | |
| WORKDIR /app | |
| # Clone repo | |
| RUN git clone https://github.com/vakumah/DownloaderX.git . | |
| # --- FIX BUG SYNTAX ERROR --- | |
| # Menghapus teks "Invalid URL" yang nyasar di file facebook.js | |
| RUN sed -i "s/mimetype: 'video\/mp4',Invalid URL/mimetype: 'video\/mp4',/g" src/features/facebook.js | |
| # Instal dependensi bot | |
| RUN npm install | |
| RUN npm install express | |
| # HF Spaces wajib jalan di port 7860 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Jalankan bot | |
| CMD ["node", "index.js"] | |