More updates to the Dockerfile and go.mod to try and squash a persistent bug.

This commit is contained in:
2025-11-02 13:58:32 +00:00
parent a0ce433094
commit 02efed56b2
2 changed files with 23 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ WORKDIR /src
COPY go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/ldap-s3-monitor ./cmd/ldap-s3-monitor
RUN go mod tidy && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/ldap-s3-monitor ./cmd/ldap-s3-monitor
# ---- run stage ----