Download Dockerfile from processed/iask: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/processed/iask/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/processed/iask/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/processed/iask/resolve/main/Dockerfile
464 Bytes
| # Gunakan Node.js sebagai base image | |
| FROM node:lts | |
| # Tentukan direktori kerja di dalam container | |
| WORKDIR /app | |
| # Salin file package.json dan package-lock.json | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Salin seluruh file proyek ke dalam container | |
| COPY . . | |
| # Install Playwright dependencies untuk browser | |
| RUN npx playwright install --with-deps | |
| # Ekspos port untuk digunakan Hugging Face | |
| EXPOSE 7860 | |
| # Jalankan aplikasi | |
| CMD ["npm", "start"] |