Hacker News new | past | comments | ask | show | jobs | submit login

Although this was always a problem until the mac M1 chips it didn’t matter much. Now it happens almost every week. I would prefer to have at least the same architecture between my local and prod environments.



docker build --platform linux/amd64

alternatively:

docker buildx build --platform linux/arm64,linux/amd64 # or whatever you need to target...


Yeah i have used this. It’s about 10x slower though. For instance unit tests that took 2 minutes on mac take almost 20 minutes.

Good for one off testing but not a full solution


I’d assume it’s no different than cross-compiling on amd64 to arm64. At least it’s possible.


So change your prod environment to ARM64.


Yes change the entire production environment to accommodate the development environment… it’s a lot cheaper to just switch developer laptops at next refresh


... To RISC-V ;)


Hetzner has ARM VPSes now :)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: