mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
fix(docker): compile goose for target architecture to prevent ARM exec-format errors #466
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iAmBipinPaul on 9/11/2025
This pull request updates the backend build stage in the
Dockerfileto ensure Go tools are installed for the correct target architecture. The most important change is switching from downloading a prebuilt binary forgooseto usinggo install, which compiles the binary for the intended architecture and prevents runtime errors on platforms like ARM.Backend build improvements:
goosetool to usego installwithGOOSandGOARCHenvironment variables, ensuring the binary matches the target architecture and avoiding exec format errors.ARG TARGETOSandARG TARGETARCHto make target architecture variables available early in the build process.