Spaces:
Sleeping
Sleeping
Download Dockerfile from CommunityOne/README: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/spaces/CommunityOne/README/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CommunityOne/README/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CommunityOne/README/resolve/main/Dockerfile
388 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm ci --prefer-offline --no-audit | |
| # Copy source code | |
| COPY . . | |
| # Build the app | |
| RUN npm run build | |
| # Install a simple static server | |
| RUN npm install -g serve | |
| # Expose port 7860 (HuggingFace Spaces default) | |
| EXPOSE 7860 | |
| # Serve the built app | |
| CMD ["serve", "-s", "dist", "-l", "7860"] | |