diff --git a/Dockerfile b/Dockerfile index 62a8a68..24041b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,17 @@ WORKDIR /app # Enable CGO for sqlite3 ENV CGO_ENABLED=1 +# Install templ +RUN go install github.com/a-h/templ/cmd/templ@latest + COPY go.mod go.sum ./ RUN go mod download COPY . . +# Generate templ files +RUN templ generate + # Build the server and the CLI tools RUN go build -o main_server ./cmd/server