Spaces:
Paused
Paused
Download Dockerfile from coincreator/react: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/spaces/coincreator/react/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/coincreator/react/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/coincreator/react/resolve/main/Dockerfile
494 Bytes
| FROM node:20-slim | |
| # Install dependencies yang dibutuhkan Chromium | |
| RUN apt-get update && apt-get install -y \ | |
| chromium \ | |
| libnss3 \ | |
| libxss1 \ | |
| libasound2 \ | |
| libatk-bridge2.0-0 \ | |
| libgtk-3-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set environment agar puppeteer tahu path chromium-nya | |
| ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | |
| ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] | |