From e5a2b74be64d3b01a95a12ae9e5391b1b36c4d42 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 23 Jan 2026 17:44:49 -0500 Subject: [PATCH] Add templ generation to Dockerfile --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index b3578ab..8909958 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,9 @@ WORKDIR /app # Install sqlc RUN go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest +# Install templ +RUN go install github.com/a-h/templ/cmd/templ@latest + # Copy source code COPY . . @@ -15,6 +18,9 @@ RUN go mod tidy # Generate sqlc code RUN sqlc generate +# Generate templ code +RUN templ generate + # Build the application RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main ./cmd/server