Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): fix macOS build error #11542

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Sebastian-Webster
Copy link

@Sebastian-Webster Sebastian-Webster commented Apr 10, 2024

I was facing some issues with getting Portainer to build and run locally on my Mac. I was getting an error in the Portainer docker container logs saying exec /app/portainer: exec format error.
Previously the Go binary would be compiled for macOS on a Mac and ran in the Linux Docker container. Since it was not a Linux binary, the exec format error would come up.

Changing the OS to Linux solves that problem and makes a Linux binary run in the Linux container.

Changes:

Changed build platform for make dev-server to linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant