lancachenet / monolithic

A monolithic lancache service capable of caching all CDNs in a single instance
https://hub.docker.com/r/lancachenet/monolithic
Other
725 stars 73 forks source link

Here's how to make docker image support both amd64 and arm64 at the same time: #148

Closed vini-nu closed 1 year ago

vini-nu commented 2 years ago

There is very easy way to add RPI4 support:

Instead of docker build -t mygroup/myimage:latest -f ./Dockerfile . docker push mygroup/myimage:latest

You could use: docker buildx create --use docker buildx build --platform=linux/amd64,linux/arm64 --push -t mygroup/myimage:latest -t mygroup/myimage:MAJOR.MINOR.PATCH -f ./Dockerfile .

This image will be pushed with both architectures. Meaning that in amd64 and arm64 the same image tag and scripts can be used.

Yes, that simple.

Of course base image needs to be rebuilt with buildx too.

Thank you!

stale[bot] commented 2 years ago

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed after being inactive for 30 days. If you require further assistance please reopen the issue with more details or talk to us on discord