swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.63k stars 1.19k forks source link

Create multi-arch docker image for amd64/arm64 #1755

Closed tnaroska closed 5 months ago

tnaroska commented 8 months ago

Is your feature request related to a problem? Please describe. Swaggo publishes a docker image at ghcr.io/swaggo/swag. Currently this is a single architecture image for linux/amd64 only. This is problematic on ARM machines such as Apple Silicon:

$ docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest
Unable to find image 'ghcr.io/swaggo/swag:latest' locally
docker: Error response from daemon: no match for platform in manifest: not found.

Describe the solution you'd like Published docker images should be multi-architecture for at least linux/amd64 and linux/arm64.

Describe alternatives you've considered Manually downloading binaries from the github release page which is less convenient.

Additional context N/A