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