Download Dockerfile from CieLZ/ramesuru: direct link, hf CLI and curl.
- Browser
- Download file 872 Bytes
-
https://huggingface.co/spaces/CieLZ/ramesuru/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CieLZ/ramesuru/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CieLZ/ramesuru/resolve/main/Dockerfile
872 Bytes
| FROM node:20-slim | |
| # Install Chromium & dependenciess | |
| RUN apt-get update && apt-get install -y \ | |
| chromium \ | |
| chromium-driver \ | |
| fonts-liberation \ | |
| libappindicator3-1 \ | |
| libasound2 \ | |
| libatk-bridge2.0-0 \ | |
| libatk1.0-0 \ | |
| libcups2 \ | |
| libdbus-1-3 \ | |
| libgdk-pixbuf2.0-0 \ | |
| libnspr4 \ | |
| libnss3 \ | |
| libx11-xcb1 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxrandr2 \ | |
| xdg-utils \ | |
| --no-install-recommends && \ | |
| apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Set workdir | |
| WORKDIR /app | |
| # Copy semua file | |
| COPY . . | |
| # Install express, cheerio, cors, dan puppeteer-core (tanpa unduh Chromium) | |
| RUN npm install express cheerio cors proxy-agent axios | |
| # Set puppeteer untuk pakai chromium dari sistem | |
| ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium | |
| # Hugging Face port | |
| ENV PORT=7860 | |
| EXPOSE $PORT | |
| # Jalankan | |
| CMD ["node", "akrep8.js"] |