Interactive UI to create optimized Dockerfiles for Node, Python, Go and more
# ---- Build Stage ---- FROM node:20-alpine AS builder WORKDIR /app # Copy dependency manifests COPY package*.json ./ # Install dependencies RUN npm ci --only=production # Copy source code COPY . . # Build RUN npm run build # ---- Production Stage ---- FROM node:20-alpine WORKDIR /app COPY --from=builder /app . ENV NODE_ENV=production EXPOSE 3000 # Run as non-root user RUN addgroup -g 1001 -S appuser && adduser -S appuser -u 1001 USER appuser LABEL maintainer="you@example.com" LABEL version="1.0" CMD ["node", "dist/index.js"]
Your data stays private. All processing happens locally in your browser. No data is collected, stored, or sent to any server.