1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 04:35:25 +00:00

fix: use curl to install nfpm

This commit is contained in:
Joe Previte 2021-04-08 14:05:30 -07:00
parent f813a1501b
commit 7bb62f1292
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24

View File

@ -37,9 +37,8 @@ ENV GOPATH=/gopath
RUN mkdir -p $GOPATH && chmod -R 777 $GOPATH RUN mkdir -p $GOPATH && chmod -R 777 $GOPATH
ENV PATH=/usr/local/go/bin:$GOPATH/bin:$PATH ENV PATH=/usr/local/go/bin:$GOPATH/bin:$PATH
# Install Go dependencies # More stable than go get
ENV GO111MODULE=on RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/nfpm.sh | sh
RUN go get github.com/goreleaser/nfpm/cmd/nfpm@v2.3.1
RUN VERSION="$(curl -fsSL https://storage.googleapis.com/kubernetes-release/release/stable.txt)" && \ RUN VERSION="$(curl -fsSL https://storage.googleapis.com/kubernetes-release/release/stable.txt)" && \
curl -fsSL "https://storage.googleapis.com/kubernetes-release/release/$VERSION/bin/linux/amd64/kubectl" > /usr/local/bin/kubectl \ curl -fsSL "https://storage.googleapis.com/kubernetes-release/release/$VERSION/bin/linux/amd64/kubectl" > /usr/local/bin/kubectl \