wcedmisten / python-nextjs-template

A full stack webapp template using Python, NextJS, and PostgresQL
MIT License
24 stars 5 forks source link

arm64 linux frontend container npm issue #2

Open ryanmalani opened 1 month ago

ryanmalani commented 1 month ago

Thanks for making this repo. I was running the dev version of this project and on startup, I kept getting an error for bin/bash not being found, then npm not found

frontend-1 | /docker-entrypoint.sh: exec: line 47: npm: not found

I was able to solve it by just removing the command line from frontend in the dockerfile.yml:

command: [ "/bin/bash", "-c", "npm run dev" ]

working now, getting 200s for frontend/backend/reverseproxy but was just curious if you knew why this might be?

wcedmisten commented 1 month ago

That's odd, I'm not sure what would cause that. I wonder if using the --platform Docker flag would fix this. I develop primarily on x86 and don't have an ARM computer to test this with unfortunately, but if you find a solution to make this cross platform I'd be happy to implement it.

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

ryanmalani commented 1 month ago

That's a great idea- I'll give it a try and get back to you!