Download Dockerfile from shadow-browser-cloner/omni-hack-2: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/spaces/shadow-browser-cloner/omni-hack-2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shadow-browser-cloner/omni-hack-2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shadow-browser-cloner/omni-hack-2/resolve/main/Dockerfile
684 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| libnss3 libnspr4 libatk-bridge2.0-0 libdrm2 libxkbcommon0 \ | |
| libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 \ | |
| libpango-1.0-0 libcairo2 libasound2 libatspi2.0-0 \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN mkdir -p /app/recordings /app/plugins /app/public | |
| COPY package.json ./ | |
| RUN npm install --production | |
| RUN npx playwright-core install chromium | |
| RUN npx playwright-core install-deps chromium | |
| COPY index.js ./ | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ | |
| CMD curl -f http://localhost:7860/health || exit 1 | |
| CMD ["node", "index.js"] |