Spaces:
Sleeping
Sleeping
Download Dockerfile from eneeyan/iqmath-backend-api: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/eneeyan/iqmath-backend-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/eneeyan/iqmath-backend-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/eneeyan/iqmath-backend-api/resolve/main/Dockerfile
431 Bytes
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| COPY package.json package-lock.json* ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build | |
| FROM node:20-alpine AS runner | |
| WORKDIR /app | |
| ENV NODE_ENV=production | |
| COPY --from=builder /app/package.json ./ | |
| COPY --from=builder /app/node_modules ./node_modules | |
| COPY --from=builder /app/dist ./dist | |
| COPY --from=builder /app/prisma ./prisma | |
| EXPOSE 5000 | |
| CMD ["npm", "run", "start"] | |