Skip to main content

Online Dockerfile Editor.

Iterate on Dockerfile configuration with clear highlighting for ops and platform teams.

Need custom conversion?

Completions appear as you type; press Ctrl+Space to open the list. Tab expands snippets where available. Find: Ctrl+F (Cmd+F on Mac). Format: toolbar button or Ctrl+Shift+B for supported languages.

Choose editor font size in pixels

Iterate on Dockerfile configuration with clear highlighting for ops and platform teams.

Related technologies: Docker Compose, Kubernetes, multi-stage builds — see also YAML Editor, INI Editor, NGINX Editor.

Starter snippet

FROM golang:1.22 AS build
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 go build -o /out/app .

FROM gcr.io/distroless/static
COPY --from=build /out/app /app
ENTRYPOINT ["/app"]

Key/value

# Dockerfile
app_name=demo
log_level=info
port=8080

Structured block

server:
  host: 0.0.0.0
  port: 443
  tls: true

Variables

ENV NODE_ENV=production

Loops

N/A — use RUN with shell loops sparingly

Functions / methods

N/A — use ENTRYPOINT/CMD for process start

Comments

# line comment

Environment

ENV NODE_ENV=production
ENV PORT=3000

Multi-stage pattern

FROM builder AS build
COPY . .
RUN build

FROM runtime
COPY --from=build /out /app

Service + healthcheck

# Dockerfile
version: '3.9'
services:
  app:
    image: myapp:latest
    ports:
      - '8080:8080'
    healthcheck:
      test: ['CMD', 'curl', '-f', 'http://localhost:8080/health']
      interval: 30s

Does Dockerfile code run on ConversionTab servers?
No. Editing happens in your browser. Download the file and run it in your usual compiler, runtime, or platform.
Can I change theme and font size?
Yes. Use the toolbar above the editor; choices persist in local storage for your browser profile.