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.

All 17 Instructions at a Glance

Installs
6
GitHub Stars
7
First Seen
Mar 27, 2026
docker-syntax-dockerfile — openaec-foundation/docker-claude-skill-package