Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use multistage docker build * Pin docker base to the manifest SHA, to ensure multi-platform images get built correctly. See this SO answer: https://stackoverflow.com/questions/74761737/how-to-use-a-multiarch-base-docker-image-when-specifying-sha The manifest information for alpine base image: ``` Name: docker.io/library/golang:1.20.3-alpine MediaType: application/vnd.docker.distribution.manifest.list.v2+json Digest: sha256:08e9c086194875334d606765bd60aa064abd3c215abfbcf5737619110d48d114 Manifests: Name: docker.io/library/golang:1.20.3-alpine@sha256:48c87cd759e3342fcbc4241533337141e7d8457ec33ab9660abe0a4346c30b60 MediaType: application/vnd.docker.distribution.manifest.v2+json Platform: linux/amd64 Name: docker.io/library/golang:1.20.3-alpine@sha256:0f9d434ef44b3d2284ede2cdda59917584db48285a76d582a3b46e59300304ba MediaType: application/vnd.docker.distribution.manifest.v2+json Platform: linux/arm/v6 ... ``` * Add clarification on how to update the base image digest
- Loading branch information