Download Dockerfile from PakPanpan/bot-wa: direct link, hf CLI and curl.
- Browser
- Download file 733 Bytes
-
https://huggingface.co/spaces/PakPanpan/bot-wa/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PakPanpan/bot-wa/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PakPanpan/bot-wa/resolve/main/Dockerfile
733 Bytes
| FROM node:18 | |
| # Install semua library yang dibutuhkan Chrome (Termasuk libcups2) | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libnss3 \ | |
| libatk-bridge2.0-0 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxrandr2 \ | |
| libgbm1 \ | |
| libasound2 \ | |
| libpangocairo-1.0-0 \ | |
| libcups2 \ | |
| libdrm2 \ | |
| libxkbcommon0 \ | |
| libxshmfence1 \ | |
| libglu1-mesa \ | |
| fonts-liberation \ | |
| libasound2 \ | |
| libnspr4 \ | |
| libnss3 \ | |
| libx11-xcb1 \ | |
| libxcb-dri3-0 \ | |
| libxss1 \ | |
| libxtst6 \ | |
| xdg-utils \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| # Pastikan bot mendengarkan port 7860 agar Hugging Face tidak bingung | |
| ENV PORT=7860 | |
| CMD ["node", "bot.js"] |