-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump Dockerfile.dapper to using go 1.17
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|