@@ -18,7 +18,7 @@ FROM debian:buster
1818
1919RUN apt-get update && \
2020 apt-get install -y build-essential gnupg curl git wget psmisc rsync make python bash-completion \
21- zip nano jq graphviz gettext-base plantuml && \
21+ zip nano jq graphviz gettext-base plantuml software-properties-common && \
2222 apt-get clean
2323
2424# install go
@@ -39,7 +39,7 @@ RUN wget -q https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip && un
3939ENV PATH /usr/local/go/bin:/go/bin:/opt/google-cloud-sdk/bin:$PATH
4040
4141# install go tooling for development, building and testing
42- RUN go get -u golang.org/x/tools/cmd/goimports
42+ RUN go install golang.org/x/tools/cmd/goimports@latest
4343
4444# RUN gcloud components update
4545RUN gcloud components update && gcloud components install app-engine-go
@@ -68,7 +68,7 @@ RUN curl -L ${HELM_URL} > /tmp/helm.tar.gz \
6868RUN echo "source <(helm completion bash)" >> /root/.bashrc
6969
7070# install golang-ci linter
71- RUN curl -sfL https:// install.goreleaser.com/ github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.42.1
71+ RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@ v1.43.0
7272
7373#
7474# \ \ / /__| |__ ___(_) |_ ___
@@ -84,8 +84,21 @@ RUN mkdir /tmp/hugo && \
8484 mv /tmp/hugo/hugo /usr/local/bin/ && \
8585 rm -r /tmp/hugo
8686
87- RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
88- apt-get install -y nodejs
87+ RUN add-apt-repository -y -r ppa:chris-lea/node.js
88+ RUN rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list
89+ RUN rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list.save
90+
91+ ARG KEYRING=/usr/share/keyrings/nodesource.gpg
92+ ARG VERSION=node_12.x
93+
94+ RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee "$KEYRING" >/dev/null
95+ RUN gpg --no-default-keyring --keyring "$KEYRING" --list-keys
96+
97+ ARG DISTRO="jessie"
98+ RUN echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list
99+ RUN echo "deb-src [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list
100+
101+ RUN apt-get update && apt-get install -y nodejs
89102
90103# install API reference docs generator
91104RUN mkdir -p /go/src/github.com/ahmetb && \
0 commit comments