From 8780b7c9b1a989d1436b033d1804367f79f4974e Mon Sep 17 00:00:00 2001 From: Ryan Hamamura <58859899+ryanhamamura@users.noreply.github.com> Date: Mon, 2 Mar 2026 22:53:00 -1000 Subject: [PATCH] fix: run templ generate in Dockerfile before build The _templ.go files are gitignored, so the Docker build context doesn't include them. Generate them before compiling. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index e0b0d87..0b62d6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ COPY go.mod go.sum ./ RUN go mod download COPY . . +RUN go tool templ generate RUN go tool gotailwind -i assets/css/input.css -o assets/css/output.css --minify RUN --mount=type=cache,target=/root/.cache/go-build \ CGO_ENABLED=0 go build -ldflags="-s" -o /bin/games .