diff --git a/aci/etchosts/Dockerfile b/aci/etchosts/Dockerfile index 7dd1e32a..d9b8e885 100644 --- a/aci/etchosts/Dockerfile +++ b/aci/etchosts/Dockerfile @@ -15,7 +15,7 @@ FROM golang:1.16 AS builder WORKDIR $GOPATH/src/github.com/docker/compose-cli/aci/etchosts COPY . . -RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/hosts main/main.go +RUN GO111MODULE=auto CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/hosts main/main.go FROM scratch COPY --from=builder /go/bin/hosts /hosts \ No newline at end of file diff --git a/ecs/resolv/Dockerfile b/ecs/resolv/Dockerfile index 79ba8163..15437746 100644 --- a/ecs/resolv/Dockerfile +++ b/ecs/resolv/Dockerfile @@ -15,7 +15,7 @@ FROM golang:1.16 AS builder WORKDIR $GOPATH/src/github.com/docker/compose-cli/ecs/resolv COPY . . -RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/resolv main/main.go +RUN GO111MODULE=auto CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/resolv main/main.go FROM scratch COPY --from=builder /go/bin/resolv /resolv diff --git a/ecs/secrets/Dockerfile b/ecs/secrets/Dockerfile index 45b7ed92..675728eb 100644 --- a/ecs/secrets/Dockerfile +++ b/ecs/secrets/Dockerfile @@ -15,7 +15,7 @@ FROM golang:1.16 AS builder WORKDIR $GOPATH/src/github.com/docker/compose-cli/ecs/secrets COPY . . -RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/secrets main/main.go +RUN GO111MODULE=auto CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/secrets main/main.go FROM scratch COPY --from=builder /go/bin/secrets /secrets