More updates to the Dockerfile and go.mod to try and squash a persistent bug.
This commit is contained in:
@@ -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 ----
|
||||
|
||||
Reference in New Issue
Block a user