Iot / Dockerfile
veltrixcode's picture
Update Dockerfile
8e6ffe1 verified
Raw History Blame Contribute Delete
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"]