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

Add --platform flag to Dockerfile #1940

Conversation

sebrandon1
Copy link
Member

@sebrandon1 sebrandon1 commented Mar 25, 2024

https://docs.docker.com/build/building/multi-platform/

For now, we only really need to build the image with the platform linux/amd64. The --platform flag allows the build to pass on M-series Mac's.

EDIT: I had to add hadolint ignore's to the Dockerfile because the linter does not like the --platform flag.

@sebrandon1 sebrandon1 self-assigned this Mar 25, 2024
@dcibot
Copy link
Collaborator

dcibot commented Mar 25, 2024

@sebrandon1
Copy link
Member Author

So this works but it is extremely slow on my M-series CPU. I'm going to close this and see if I can build natively and see if that breaks anything.

@sebrandon1 sebrandon1 closed this Mar 25, 2024
@sebrandon1 sebrandon1 deleted the build_image_on_arm branch February 12, 2025 19:09
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.

2 participants