Download Dockerfile from rb512/gatepass: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/rb512/gatepass/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rb512/gatepass/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rb512/gatepass/resolve/main/Dockerfile
410 Bytes
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| COPY package.json package-lock.json ./ | |
| RUN npm ci | |
| COPY . . | |
| ENV NEXT_PUBLIC_API_URL=https://rb512-gatepass-backend.hf.space | |
| RUN npm run build | |
| FROM node:20-alpine AS runner | |
| WORKDIR /app | |
| COPY --from=builder /app/.next/standalone ./ | |
| COPY --from=builder /app/.next/static ./.next/static | |
| ENV PORT=3000 | |
| ENV HOSTNAME=0.0.0.0 | |
| EXPOSE 3000 | |
| CMD ["node", "server.js"] | |