Loading…
Generate a Dockerfile for Node.js, Python, Go, or static sites by answering a few questions, with sensible defaults and multi-stage builds.
FROM node:22-alpine AS base
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=base /app ./
EXPOSE 3000
CMD ["npm", "start"]