Download Dockerfile from Forgets/V2: direct link, hf CLI and curl.
- Browser
- Download file 694 Bytes
-
https://huggingface.co/spaces/Forgets/V2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Forgets/V2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Forgets/V2/resolve/main/Dockerfile
694 Bytes
| FROM node:18-bullseye | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| chromium \ | |
| chromium-driver \ | |
| fonts-liberation \ | |
| libasound2 \ | |
| libatk-bridge2.0-0 \ | |
| libatk1.0-0 \ | |
| libatspi2.0-0 \ | |
| libcups2 \ | |
| libdbus-1-3 \ | |
| libdrm2 \ | |
| libgbm1 \ | |
| libgtk-3-0 \ | |
| libnspr4 \ | |
| libnss3 \ | |
| libwayland-client0 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxfixes3 \ | |
| libxkbcommon0 \ | |
| libxrandr2 \ | |
| xdg-utils \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| COPY postinstall.js ./ | |
| RUN npm install | |
| COPY . . | |
| EXPOSE 7860 | |
| ENV PLAYWRIGHT_BROWSERS_PATH=/usr/bin/chromium | |
| ENV NODE_ENV=production | |
| CMD ["node", "server.js"] |