From 8b96d5f58603249279b31e1ae3fdfe4ff7bde80d Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 2 May 2026 17:41:10 +0200 Subject: [PATCH] build: fix dockerfile paths and remove templ --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index c4cff0f..18a8a11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,6 @@ WORKDIR /app # Enable CGO for sqlite3 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@v1.30.0 @@ -25,14 +22,11 @@ RUN bun install --frozen-lockfile # Copy key source files first to auto-bust cache when they change # This ensures the COPY . . layer is never stale -COPY web/shared/layout/layout.templ ./ -RUN cat web/shared/layout/layout.templ | md5sum > /tmp/source_hash.txt +COPY templates/base.gohtml ./ +RUN cat base.gohtml | md5sum > /tmp/source_hash.txt COPY . . -# Generate templ files -RUN templ generate - # Build frontend assets (tailwind + ts) # Touch input file to force Tailwind to rescan RUN touch ./static/style.css && bun run build:assets