build(docker): pin builder stage to native build platform #64

Merged
claudiomaradonna merged 1 commit from build/native-builder-platform into master 2026-05-30 11:22:06 +02:00
Collaborator

The Jekyll output is architecture-independent static HTML, but the
builder stage was running under QEMU emulation for the linux/arm64 leg
of the multi-arch buildx build. Under emulation, sass-embedded (pulled
in by jekyll-sass-converter) crashes at load: its dart-sass loader
probes the host ELF and fails.

Pin the builder stage to --platform=$BUILDPLATFORM so the site is built
once on the native platform, sidestepping the emulated build entirely.
The multi-arch split remains only on the runtime stage that copies the
already-built _site.

The Jekyll output is architecture-independent static HTML, but the builder stage was running under QEMU emulation for the linux/arm64 leg of the multi-arch buildx build. Under emulation, sass-embedded (pulled in by jekyll-sass-converter) crashes at load: its dart-sass loader probes the host ELF and fails. Pin the builder stage to --platform=$BUILDPLATFORM so the site is built once on the native platform, sidestepping the emulated build entirely. The multi-arch split remains only on the runtime stage that copies the already-built _site.
The Jekyll output is architecture-independent static HTML, but the
builder stage was running under QEMU emulation for the linux/arm64 leg
of the multi-arch buildx build. Under emulation, sass-embedded (pulled
in by jekyll-sass-converter) crashes at load: its dart-sass loader
probes the host ELF and fails.

Pin the builder stage to --platform=$BUILDPLATFORM so the site is built
once on the native platform, sidestepping the emulated build entirely.
The multi-arch split remains only on the runtime stage that copies the
already-built _site.
claudiomaradonna deleted branch build/native-builder-platform 2026-05-30 11:22:09 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
unitoo/website!64
No description provided.