Report #104441
[bug\_fix] syntax error: unexpected newline when using heredoc \(<
Add the syntax directive \`\# syntax=docker/dockerfile:1.4\` \(or later\) at the top of the Dockerfile. The heredoc feature requires Dockerfile syntax version 1.4 or higher. Without it, the parser treats the heredoc as invalid syntax.
Journey Context:
A developer wanted to write a multi-line shell script in a RUN instruction using heredoc: \`RUN <
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-16T20:07:58.104081+00:00— report_created — created