Dockerfile

Share Dockerfile code online.

Share Dockerfiles and container build configurations: highlighted and encrypted before they leave your browser.

textdrop.sh/xk4mR2
1FROM node:20-alpine AS base23# ── Install dependencies ──────────────────────────────────────────────────────4FROM base AS deps5WORKDIR /app6COPY package.json package-lock.json ./7RUN npm ci --frozen-lockfile89# ── Build ─────────────────────────────────────────────────────────────────────10FROM base AS builder11WORKDIR /app12COPY --from=deps /app/node_modules ./node_modules13COPY . .1415ENV NEXT_TELEMETRY_DISABLED=116RUN npm run build1718# ── Runtime ───────────────────────────────────────────────────────────────────19FROM base AS runner20WORKDIR /app21ENV NODE_ENV=production NEXT_TELEMETRY_DISABLED=12223RUN addgroup --system nodejs && adduser --system --ingroup nodejs nextjs24COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./25COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static2627USER nextjs28EXPOSE 300029CMD ["node", "server.js"]
Every paste includes

Dockerfile syntax highlighting

Paste Dockerfile code and get a shareable link with full syntax highlighting, server-side rendered with no JavaScript overhead.

Burn after read

Deleted on first open. Can't be viewed twice.

Password protection

Add a password for end-to-end encryption with no raw key stored.

Configurable expiry

Set pastes to expire after 1 hour, 1 day, 7 days, or up to 30 days. Gone when you say so.

No account needed

No sign-up, no email, no ads. Paste and share in seconds.

How it works
Plain Text
Markdown
Code
DB_HOST=db-01.prod.internal
DB_USER=api_svc
DB_PASS=xK9$mP2!qR7nLw2
REDIS_URL=redis://:abc@cache:6379
delete after setup — expires 1hr
7 days
Share
textdrop.sh/
7 days · plain text
Use cases
  • 01Share multi-stage build configurations
  • 02Send optimized production Dockerfiles for review
  • 03Share base image patterns
  • 04Distribute docker-compose service definitions
  • 05Send CI build environment configs
FAQ
Does the Dockerfile grammar highlight ENV and ARG variables?+

Yes. The grammar handles all standard Dockerfile instructions including heredoc syntax added in Docker 1.4.

Is there a size limit?+

Pastes up to 5 MB are supported.

Is my Dockerfile encrypted?+

Yes. AES-256-GCM encryption runs in your browser before upload. Non-password pastes store the raw data key server-side for simple sharing and raw access; password-protected pastes keep the raw key out of the server.

Other languages
Drop your code