Spaces:
Sleeping
Sleeping
Download Dockerfile from devarshia5/pmtool: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/spaces/devarshia5/pmtool/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/devarshia5/pmtool/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/devarshia5/pmtool/resolve/main/Dockerfile
650 Bytes
| # Build stage | |
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm ci | |
| # Copy source code | |
| COPY . . | |
| # Build the Vite app with NODE_ENV=development to use staging backend | |
| RUN NODE_ENV=development npm run build | |
| # Production stage - serve static files | |
| FROM node:20-alpine | |
| WORKDIR /app | |
| # Install serve to host static files | |
| RUN npm install -g serve | |
| # Copy built files from builder | |
| COPY --from=builder /app/dist ./dist | |
| # Expose port 7860 (Hugging Face Spaces requirement) | |
| EXPOSE 7860 | |
| # Serve the static files on port 7860 | |
| CMD ["serve", "-s", "dist", "-l", "7860", "--no-clipboard"] | |