diff --git a/Dockerfile.dapper b/Dockerfile.dapper index bbeb481c..cfc0009f 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -1,18 +1,16 @@ -FROM golang:1.16-alpine3.12 +FROM golang:1.17-alpine3.16 ARG DAPPER_HOST_ARCH ENV ARCH $DAPPER_HOST_ARCH RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates -RUN GO111MODULE=on GOPROXY=direct go get golang.org/x/tools/cmd/goimports@gopls/v0.8.2 -RUN rm -rf /go/src /go/pkg +RUN GOPROXY=direct go get golang.org/x/tools/cmd/goimports@gopls/v0.8.2 RUN if [ "${ARCH}" == "amd64" ]; then \ curl -sL https://raw.githubusercontent.com/golangci/golangci-lint/v1.45.2/install.sh | sh -s; \ go install sigs.k8s.io/kustomize/kustomize/v4@v4.5.5; \ fi -ENV GO111MODULE off ENV DAPPER_ENV REPO TAG DRONE_TAG ENV DAPPER_SOURCE /go/src/github.com/k3s-io/helm-controller/ ENV DAPPER_OUTPUT ./bin ./dist