Spaces:
Sleeping
Sleeping
Download Dockerfile from rdlf/devops-metrics-interpreter: direct link, hf CLI and curl.
- Browser
- Download file 573 Bytes
-
https://huggingface.co/spaces/rdlf/devops-metrics-interpreter/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rdlf/devops-metrics-interpreter/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rdlf/devops-metrics-interpreter/resolve/main/Dockerfile
573 Bytes
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm ci | |
| COPY . . | |
| RUN npm run build | |
| # ---- Runtime ---- | |
| FROM node:20-alpine AS runner | |
| WORKDIR /app | |
| ENV NODE_ENV=production | |
| # HF Spaces requires port 7860 | |
| ENV PORT=7860 | |
| ENV HOSTNAME=0.0.0.0 | |
| # Copy standalone build | |
| COPY --from=builder /app/.next/standalone ./ | |
| COPY --from=builder /app/.next/static ./.next/static | |
| COPY --from=builder /app/public ./public | |
| # Bundle the extracted benchmarks so the Space works out of the box | |
| COPY --from=builder /app/data ./data | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] | |