In my experience with C and .net applications specifying base images without an arch will cause docker to pull the correct image for the arch and you can let the compiler infer the platform, but I have no idea how well go handles that.

I also notice many go applications are distroless, I'm not how important what commands you are running in your final image are and if you can eliminate them, the image can be quite small if you do, like 7-10mb usually.

Reply to this note

Please Login to reply.

Discussion

No replies yet.