build: ignore generated js artifacts

This commit is contained in:
2026-04-15 00:13:11 +02:00
parent 29e49b9fcc
commit 1344419902
9 changed files with 14 additions and 406 deletions

View File

@@ -8,11 +8,22 @@ ENV CGO_ENABLED=1
# Install templ
RUN go install github.com/a-h/templ/cmd/templ@latest
# Install bun for frontend asset builds
RUN apt-get update && apt-get install -y curl unzip && rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/root/.bun/bin:${PATH}"
COPY go.mod go.sum ./
RUN go mod download
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
# Build frontend assets (tailwind + ts)
RUN bun run build:assets
# Generate templ files
RUN templ generate