Download Dockerfile from ChoruYt/pi: direct link, hf CLI and curl.
- Browser
- Download file 643 Bytes
-
https://huggingface.co/spaces/ChoruYt/pi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ChoruYt/pi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ChoruYt/pi/resolve/main/Dockerfile
643 Bytes
| FROM node:20-slim | |
| RUN apt-get update && apt-get install -y \ | |
| chromium \ | |
| ca-certificates \ | |
| fonts-liberation \ | |
| libasound2 \ | |
| libatk-bridge2.0-0 \ | |
| libatk1.0-0 \ | |
| libcups2 \ | |
| libdrm2 \ | |
| libgbm1 \ | |
| libgtk-3-0 \ | |
| libnss3 \ | |
| libx11-6 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxext6 \ | |
| libxfixes3 \ | |
| libxrandr2 \ | |
| libxkbcommon0 \ | |
| xdg-utils \ | |
| --no-install-recommends \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install --omit=dev | |
| COPY . . | |
| ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium | |
| ENV NODE_ENV=production | |
| EXPOSE 7860 | |
| CMD ["node", "index.js"] |