From 83e480b7b0a9b04ce13148621d11a7f67e33b1e5 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Thu, 7 May 2026 12:55:08 +0200 Subject: [PATCH] fix: force fresh frontend build in docker --- Dockerfile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a77d345..624a49c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,16 +20,11 @@ RUN go mod download COPY package.json bun.lock ./ 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 templates/base.gohtml ./ -RUN cat base.gohtml | md5sum > /tmp/source_hash.txt - +# Copy all source files COPY . . -# Build frontend assets (tailwind + ts) -# Touch input file to force Tailwind to rescan -RUN touch ./static/style.css && bun run build:assets +# Build frontend assets (tailwind + ts) from a clean state +RUN rm -rf dist/ && bun run build:assets # Generate sqlc code RUN sqlc generate