Spaces:
Paused
Paused
Download Dockerfile from FarelDeveloper/brat-farel: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/FarelDeveloper/brat-farel/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/FarelDeveloper/brat-farel/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FarelDeveloper/brat-farel/resolve/main/Dockerfile
507 Bytes
| # Base image | |
| FROM node:18 | |
| # Install dependencies needed (opsional jika pakai sharp / canvas) | |
| RUN apt-get update && apt-get install -y \ | |
| libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev build-essential | |
| # Set workdir | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package.json package-lock.json* ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy seluruh project | |
| COPY . . | |
| # Port HuggingFace Spaces (harus 7860 kalau pakai Spaces docker) | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Start | |
| CMD ["npm", "start"] |