sightbox/erpnext-image
JasonFraser b0805a0434 Fix cross-platform build: push linux/amd64, keep local builds on host arch
Confirmed the hard way on a real Dokploy deploy: a plain `docker build` on
this Apple Silicon Mac produces an arm64-only image, so the amd64 Dokploy
VPS failed to pull either custom image ("no matching manifest for
linux/amd64") for configurator/backend/frontend (erpnext-image) and
backend-billing alike.

Both build.sh scripts now branch on whether BACKEND_BILLING_IMAGE/
CUSTOM_IMAGE is a registry path: a bare local tag still builds for this
machine's own architecture (so it runs immediately for local dev), while
a registry path builds specifically for linux/amd64 via buildx (with
--push, since a cross-platform result can't be loaded into the local
image store) — matching the actual Dokploy VPS target regardless of what
architecture the build machine is.

erpnext-image/build.sh previously had no push step at all; added one
following the same pattern.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y
2026-10-02 07:20:35 -04:00
..
Dockerfile Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00
build.sh Fix cross-platform build: push linux/amd64, keep local builds on host arch 2026-10-02 07:20:35 -04:00
stock-sidebar-icon.svg Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00