From f06feffb9e092245702e5801d2685cce9cc74015 Mon Sep 17 00:00:00 2001 From: maddalax Date: Tue, 1 Oct 2024 22:39:30 -0500 Subject: [PATCH] forgot prod build tag --- examples/chat/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chat/Dockerfile b/examples/chat/Dockerfile index c336569..5f9bc42 100644 --- a/examples/chat/Dockerfile +++ b/examples/chat/Dockerfile @@ -16,7 +16,7 @@ COPY . . # Build the Go binary for Linux RUN CGO_ENABLED=0 GOPRIVATE=github.com/maddalax LOG_LEVEL=debug go run github.com/maddalax/htmgo/cli/htmgo@8b816e956692683337d9fff6416ccc31f5047b59 build -RUN CGO_ENABLED=1 GOOS=linux go build -o ./dist -a -ldflags '-linkmode external -extldflags "-static"' . +RUN CGO_ENABLED=1 GOOS=linux go build -tags prod -o ./dist -a -ldflags '-linkmode external -extldflags "-static"' . # Stage 2: Create the smallest possible image