Share Dockerfile code with CodeThis

Share Dockerfiles for reproducible builds and multi-stage patterns.

Paste Dockerfile now

What you get

  • Dockerfile-aware syntax highlighting via CodeMirror
  • Instant shareable link — no signup required
  • Optional expiration (7 days, 30 days, permanent)
  • Password protection for private pastes
  • Works with the REST API and MCP server
  • Rich markdown and MDC components alongside code

Common use cases for Dockerfile pastes

  • Multi-stage build examples
  • Base image comparisons
  • CI/CD demos
  • Minimal container patterns

Example

FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN corepack enable && pnpm install --frozen-lockfile
COPY . .
RUN pnpm build

FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/.output ./
CMD ["node", "server/index.mjs"]

Related languages

Ready to share some Dockerfile?