Spaces:
Paused
Paused
Download Dockerfile from henztech/cbl-flasher: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/henztech/cbl-flasher/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/henztech/cbl-flasher/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/henztech/cbl-flasher/resolve/main/Dockerfile
537 Bytes
| # Use lightweight Node.js 18 Alpine image | |
| FROM node:18-alpine | |
| # Install git and bash (for debugging) | |
| RUN apk add --no-cache git bash | |
| # Set working directory | |
| WORKDIR /app | |
| # Clone your repo and install production dependencies | |
| RUN git clone https://github.com/EMMYHENZ-TECH/flasher . && \ | |
| rm -rf .git && \ | |
| npm install --production | |
| # Optional: Copy .env file (uncomment if needed) | |
| # COPY .env .env | |
| # Set environment variable for port (used by Hugging Face) | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["node", "server.js"] |