81b702b918
Remove gox in favor of go build. `gox` hasn't had a release to update it in many years, so is missing support for many modern systems, like `darwin/arm64`. In any case, we only use it for dev builds, where we don't even use the ability of it to build for multiple platforms. Release builds use `go build` now. So, this switches to `go build` everywhere. I pulled this down and tested it in Windows as well. (Side note: I couldn't get `gox` to work in Windows, so couldn't build before this change.)
38 lines
1.2 KiB
Docker
38 lines
1.2 KiB
Docker
FROM debian:buster
|
|
|
|
RUN apt-get update -y && apt-get install --no-install-recommends -y -q \
|
|
curl \
|
|
zip \
|
|
build-essential \
|
|
gcc-multilib \
|
|
g++-multilib \
|
|
ca-certificates \
|
|
git mercurial bzr \
|
|
gnupg \
|
|
libltdl-dev \
|
|
libltdl7
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
|
|
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
|
|
|
RUN apt-get update -y && apt-get install -y -q nodejs yarn
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
ENV GOVERSION 1.13.8
|
|
RUN mkdir /goroot && mkdir /gopath
|
|
RUN curl https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz \
|
|
| tar xvzf - -C /goroot --strip-components=1
|
|
|
|
ENV GOPATH /gopath
|
|
ENV GOROOT /goroot
|
|
ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH
|
|
|
|
RUN go get golang.org/x/tools/cmd/goimports
|
|
|
|
RUN mkdir -p /gopath/src/github.com/hashicorp/vault
|
|
WORKDIR /gopath/src/github.com/hashicorp/vault
|
|
CMD make static-dist bin
|