Skip to content
docktionary

Playground / Dockerfile builder

Dockerfile builder

Start from a preset or from scratch. Add a stage to go multi-stage — name it, then pick it as the source for a COPY --from in any later stage. Every change on the left updates the real Dockerfile on the right — for the full instruction-by-instruction reference, see the Dockerfile reference.

Start from a preset

Stage 1
Instructions
Final stage command — this is what actually runs

Generated Dockerfile

Dockerfile
FROM node:22-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
COPY . .
EXPOSE 3000
USER node
CMD ["node", "server.js"]