File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM registry.drycc.cc/drycc/base:bullseye
22
33LABEL name="drycc-go-dev"
44
5- ENV GO_VERSION=1.17.7
6- ENV GOLANGCI_LINT_VERSION=v1.44 .2
5+ ENV GO_VERSION=1.18.4
6+ ENV GOLANGCI_LINT_VERSION=v1.47 .2
77
88# This is a huge one-liner to optimize the Docker image layer.
99# We disable source repos to speed up apt-get update.
@@ -39,11 +39,10 @@ RUN export DEBIAN_FRONTEND=noninteractive \
3939 -L "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$(dpkg --print-architecture)/kubectl" \
4040 && chmod +x /usr/local/bin/kubectl \
4141 && go env -w GO111MODULE=on \
42- && go get -u -v \
43- github.com/AlekSi/gocov-xml \
44- github.com/axw/gocov/gocov \
45- github.com/mitchellh/gox \
46- github.com/mgechev/revive \
42+ && go install github.com/AlekSi/gocov-xml@latest \
43+ && go install github.com/axw/gocov/gocov@latest \
44+ && go install github.com/mitchellh/gox@latest \
45+ && go install github.com/mgechev/revive@latest \
4746 && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VERSION \
4847 && mkdir -p /var/lib/shared/{overlay-images,overlay-layers} \
4948 && touch /var/lib/shared/{overlay-images/images.lock,overlay-layers/layers.lock} \
You can’t perform that action at this time.
0 commit comments