Spaces:
Sleeping
Sleeping
Download Dockerfile from User-2468/node-hello: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/spaces/User-2468/node-hello/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/User-2468/node-hello/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/User-2468/node-hello/resolve/main/Dockerfile
317 Bytes
| # Base image | |
| FROM node:18-slim | |
| # Set work directory | |
| WORKDIR /app | |
| # Copy package.json and install dependencies | |
| COPY package.json ./ | |
| RUN npm install --production | |
| # Copy source code | |
| COPY . . | |
| # Expose port (Hugging Face expects 7860 by default, but you can use 3000) | |
| EXPOSE 3000 | |
| # Start app | |
| CMD ["node", "index.js"] | |