From dd9c025b53ef9b6839d5eb0e8ac05fdf99252a87 Mon Sep 17 00:00:00 2001 From: Ben Binder Date: Mon, 24 Feb 2025 01:15:42 -0600 Subject: [PATCH] Adjust Dockerfile. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7d63447..66149b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN go mod download COPY . . # Build the application -RUN go build -o harbormaster . +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o harbormaster . # Use a small base image for the final container FROM alpine:latest