open-vault/scripts/cross/Dockerfile

42 lines
1.4 KiB
Docker
Raw Normal View History

FROM debian:buster
RUN apt-get update -y && apt-get install --no-install-recommends -y -q \
curl \
zip \
build-essential \
2018-04-03 14:46:45 +00:00
gcc-multilib \
g++-multilib \
ca-certificates \
git mercurial bzr \
2018-04-03 14:46:45 +00:00
gnupg \
libltdl-dev \
libltdl7
RUN curl -sL https://deb.nodesource.com/setup_10.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
2019-03-09 07:58:18 +00:00
RUN apt-get update -y && apt-get install -y -q nodejs yarn=1.12.1-1
2018-04-03 14:46:45 +00:00
RUN rm -rf /var/lib/apt/lists/*
2019-06-12 13:38:35 +00:00
ENV GOVERSION 1.12.6
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 github.com/mitchellh/gox
RUN go get github.com/hashicorp/go-bindata
2018-12-14 16:05:42 +00:00
RUN go get github.com/hashicorp/go-bindata/go-bindata
RUN go get github.com/elazarl/go-bindata-assetfs
RUN go get github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs
2019-07-05 23:59:04 +00:00
RUN mkdir /vault
WORKDIR /vault
2018-04-03 14:46:45 +00:00
CMD make static-dist bin