From 6841f5c55ac749fbfbf24f6a69c20139ecd5e212 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 14 Jun 2026 21:58:04 +0200 Subject: [PATCH] ci: drop sqlc from Docker build sqlc-generated code is committed, no need to install and run it during docker image builds --- Dockerfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index fcbb448..176c8c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ RUN curl -fsSL https://bun.sh/install | bash ENV PATH="/root/.bun/bin:${PATH}" -# Install sqlc for code generation -RUN go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.30.0 - ENV GOPROXY=direct COPY go.mod go.sum ./ RUN go mod download @@ -34,9 +31,6 @@ COPY . . # Ensure dist is clean at build time (belt + suspenders) RUN rm -rf dist/ && bun run build:assets -# Generate sqlc code -RUN sqlc generate - # Build the server and CLI tools RUN go build -ldflags="-s -w" -o main_server ./cmd/server RUN go build -ldflags="-s -w" -o create-user ./cmd/user