Skip to content
Discussion options

You must be logged in to vote

It's a modified version of https://docs.docker.com/guides/golang/build-images/#multi-stage-builds

Looking at it with fresh eyes, looks like the fetch-stage doesn't have any effect.

Feel free to create a PR if you have a better way. Personally, I commit _templ.go files and build Docker containers using Nix tooling.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@oskolist
Comment options

@oskolist
Comment options

@a-h
Comment options

a-h May 15, 2026
Maintainer

Answer selected by oskolist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants