Skip to content

Commit

Permalink
Bump Dockerfile.dapper to using go 1.17
Browse files Browse the repository at this point in the history
Signed-off-by: Arvind Iyengar <[email protected]>
  • Loading branch information
Arvind Iyengar committed Sep 7, 2022
1 parent 9d40260 commit 9cc8f81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.dapper
Original file line number Diff line number Diff line change
@@ -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/[email protected]; \
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
Expand Down

0 comments on commit 9cc8f81

Please sign in to comment.