Remove entrypoint and make it possible to do cross platform build #7812
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enables multi-platform Docker image builds using
docker buildx
to support both AMD64 and ARM64 architectures.It is really simple:
Replace the image name and tag with official nopcommerce scope. That said,
stevefan1999/nopcommerce:latest
does exist for an example of a successful multi-arch build for nopCommerce.The changes allow nopCommerce to run natively on ARM-based infrastructure including Oracle Cloud's Always Free ARM instances, AWS Graviton, Azure ARM VMs, and Apple Silicon development environments. I have manually confirmed it runs on my ARM VPS server, albeit not with additional testing, that I haven't installed it yet, and may have to think about how to store the config.
Little nag: I also want to know how do I do automatic installation without human intervention, because I run in a Kubernetes environment and I want to auto deploy everything, and I need to know what paths I needed to store persistent data.
Changes:
docker buildx
with--platform linux/amd64,linux/arm64