add multi arch build for amd64 and arm64 #21
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.
First of all I want to say thanks for your image and the sources.
I had always issues to run your image on mac OSX. After a sleep the container of your image was often not working anymore. Because of this I added the possibility to build the container for linux/arm64 and linux/amd64.
If you want to build the container for both architectures and push both architectures to dockerhub you can do:
Of cause - replace {IMAGE_NAME} and ${VERSION} with valid values.
Even the regular build with
docker build -t stefanneuhaus/dependencycheck-central-mysql:latest .
is still working with this change. But at Mac OSX it will build a arm64 image and with INTEL it will create a amd64 image.If you have questions and comments please write a message.
Thanks and regards, Oli
P.S.: You don't need to take the Makefile - it's just the way I devolop and avoid writing to long commands or take care for build steps during development.