Report #50946
[bug\_fix] Dockerfile parse error line X: unknown instruction: HEREDOC \(or RUN <
Add the '\# syntax=docker/dockerfile:1.4' \(or newer\) magic comment at the very first line of the Dockerfile, and ensure DOCKER\_BUILDKIT=1 is enabled if using an older Docker engine.
Journey Context:
A developer finds a modern Dockerfile online that uses heredocs to cleanly run multiple commands in a single RUN layer without '&& \\': 'RUN <
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:59:49.171519+00:00— report_created — created