From 426f8ec13f0bb5253bdb9b5895b5fc87d7aa70b4 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Wed, 22 Apr 2026 21:29:15 +0200 Subject: [PATCH] fix: add sqlc generate to Dockerfile build --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index f50861b..5620264 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,9 @@ ENV CGO_ENABLED=1 # Install templ RUN go install github.com/a-h/templ/cmd/templ@latest +# Install sqlc for code generation +RUN go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest + # Install build dependencies for bun + assets RUN apt-get update && apt-get install -y ca-certificates sqlite3 curl unzip && rm -rf /var/lib/apt/lists/* RUN curl -fsSL https://bun.sh/install | bash @@ -27,6 +30,9 @@ RUN bun run build:assets # Generate templ files RUN templ generate +# Generate sqlc code +RUN sqlc generate + # Build the server and CLI tools RUN go build -o main_server ./cmd/server