Download Dockerfile from ByteRiot/frontend-candidate-explorer: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/ByteRiot/frontend-candidate-explorer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ByteRiot/frontend-candidate-explorer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ByteRiot/frontend-candidate-explorer/resolve/main/Dockerfile
410 Bytes
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm ci | |
| COPY . . | |
| RUN npx prisma generate # ← add this line | |
| RUN npm run build | |
| FROM node:20-alpine AS runner | |
| WORKDIR /app | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| COPY --from=builder /app/.next/standalone ./ | |
| COPY --from=builder /app/.next/static ./.next/static | |
| COPY --from=builder /app/public ./public | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] |