2023-03-15 12:00:52 -04:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-08-10 21:14:03 -04:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-15 12:00:52 -04:00
|
|
|
|
2019-07-09 03:51:05 -04:00
|
|
|
FROM debian:buster
|
2015-09-22 13:19:58 -04:00
|
|
|
|
|
|
|
|
RUN apt-get update -y && apt-get install --no-install-recommends -y -q \
|
|
|
|
|
curl \
|
|
|
|
|
zip \
|
|
|
|
|
build-essential \
|
2018-04-03 10:46:45 -04:00
|
|
|
gcc-multilib \
|
|
|
|
|
g++-multilib \
|
2015-09-22 13:19:58 -04:00
|
|
|
ca-certificates \
|
|
|
|
|
git mercurial bzr \
|
2018-04-03 10:46:45 -04:00
|
|
|
gnupg \
|
|
|
|
|
libltdl-dev \
|
|
|
|
|
libltdl7
|
|
|
|
|
|
2024-05-16 12:02:01 -04:00
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
|
2019-02-13 09:34:38 -05:00
|
|
|
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-10-25 17:00:45 -04:00
|
|
|
RUN apt-get update -y && apt-get install -y -q nodejs yarn
|
2018-04-03 10:46:45 -04:00
|
|
|
|
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2015-09-22 13:19:58 -04:00
|
|
|
|
2020-02-19 02:30:04 -05:00
|
|
|
ENV GOVERSION 1.13.8
|
2015-09-22 13:19:58 -04:00
|
|
|
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
|
|
|
|
|
|
2019-07-25 14:11:03 -04:00
|
|
|
RUN go get golang.org/x/tools/cmd/goimports
|
2015-09-22 13:19:58 -04:00
|
|
|
|
2019-07-09 04:15:03 -04:00
|
|
|
RUN mkdir -p /gopath/src/github.com/hashicorp/vault
|
|
|
|
|
WORKDIR /gopath/src/github.com/hashicorp/vault
|
2018-04-03 10:46:45 -04:00
|
|
|
CMD make static-dist bin
|