Spaces:
Sleeping
Sleeping
Download Dockerfile from veltrixcode/Iot: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/veltrixcode/Iot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/veltrixcode/Iot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/veltrixcode/Iot/resolve/main/Dockerfile
399 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package.json package-lock.json* ./ | |
| # Install ALL deps (dev included — needed for build AND next start) | |
| RUN npm ci | |
| # Copy source | |
| COPY . . | |
| # Build the app (runs prisma generate + next build) | |
| RUN npm run build | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # next is available in node_modules/.bin via npm start | |
| CMD ["npm", "start"] |