matrix-org / rageshake

Bug report server
Apache License 2.0
30 stars 12 forks source link

Build and push multi-arch Docker images on ghcr.io #47

Closed sandhose closed 2 years ago

sandhose commented 2 years ago

This does two things:

There are a few important things to note about the changes in the Dockerfile:

sandhose commented 2 years ago

It happened: I needed to pop a shell within the container to debug something, but the image does not include one. I added a debug variant of the image (based on the debug variant of the distroless image), and to avoid building the image from scratch twice, I switched to Docker Buildx bake files, which allows specifying multiple targets at once, building only one build graph, which in the end avoids compiling the Go binary twice for both variants.

I have a similar setup over at https://github.com/matrix-org/matrix-authentication-service