docker-syntax-dockerfile
Installation
SKILL.md
docker-syntax-dockerfile
Quick Reference
Parser Directives
Parser directives MUST appear at the very top of the Dockerfile, before any instructions, blank lines, or comments.
| Directive | Purpose | Example |
|---|---|---|
# syntax=docker/dockerfile:1 |
Enable BuildKit features (heredocs, mounts, etc.) | ALWAYS include this |
| `# escape=`` | Change escape character (useful on Windows) | Optional |
# check=error=true |
Enable build-time lint checks (v1.8.0+) | Optional |
ALWAYS start every Dockerfile with # syntax=docker/dockerfile:1 to enable BuildKit extensions.