Download Dockerfile from ryuhan/solver: direct link, hf CLI and curl.
- Browser
- Download file 838 Bytes
-
https://huggingface.co/spaces/ryuhan/solver/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ryuhan/solver/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ryuhan/solver/resolve/main/Dockerfile
838 Bytes
| FROM node:22-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| wget \ | |
| gnupg \ | |
| ffmpeg \ | |
| ca-certificates \ | |
| apt-transport-https \ | |
| xvfb \ | |
| libnss3 \ | |
| libatk-bridge2.0-0 \ | |
| libdrm2 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxrandr2 \ | |
| libgbm1 \ | |
| libxkbcommon0 \ | |
| libasound2 \ | |
| libpango-1.0-0 \ | |
| libcairo2 \ | |
| libatspi2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444 \ | |
| --mount=type=secret,id=GITHUB_REPO,mode=0444 \ | |
| git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/$(cat /run/secrets/GITHUB_REPO).git /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| RUN npx playwright install chromium | |
| COPY . . | |
| ENV PLAYWRIGHT_BROWSERS_PATH=/root/.cache/ms-playwright | |
| ENV DISPLAY=:99 | |
| EXPOSE 7860 | |
| CMD ["npm", "start"] |