Androecia / FriendConnect-Container

FriendConnect as a Docker Compose Stack
Other
2 stars 2 forks source link

enhancement: docker build for ARM systems #1

Open densellp opened 7 months ago

densellp commented 7 months ago

Currently the docker file builds an x86 image, but users with apple silicon chip have issues. Here is an example of the issues that occur when attempting to build with an ARM chip.

Screenshot 2024-01-29 at 4 08 08 PM

This also brings up an issue where all the node modules are out of date, so the ARM dependancies are REALLY out of date.

Screenshot 2024-01-29 at 4 08 08 PM

That PR for updating the node modules will need to be in the upstream of the actual project, this ticket mainly focuses on the ARM compatibility.

AstreaTSS commented 7 months ago

The image Docker is making here should be ARM actually when made on an ARM system, and most likely is - rather, what's happening here is that racket-native doesn't have great ARM support (which seems bizarre since it isn't too old, but oh well).

Perhaps forcing x86/amd64 through Docker could make things work more smoothly by making Docker use an x86 emulator, though I'm not sure.

densellp commented 7 months ago

Still didn't work, I tried enforcing linux/amd64 as a --platform and it still broke.