2019-10-08 04:08:28 +00:00
|
|
|
FROM golang:1.13.1
|
2018-07-24 21:57:24 +00:00
|
|
|
|
|
|
|
RUN chmod -R 755 "$GOPATH"
|
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt update && apt install -y --no-install-recommends \
|
|
|
|
autoconf \
|
|
|
|
git \
|
|
|
|
libtool \
|
|
|
|
locales \
|
|
|
|
make \
|
|
|
|
python-boto \
|
|
|
|
rpm \
|
|
|
|
ruby \
|
|
|
|
ruby-dev \
|
|
|
|
zip && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
|
|
|
|
RUN locale-gen C.UTF-8 || true
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
|
|
|
|
RUN gem install fpm
|
|
|
|
|
|
|
|
RUN go get -d github.com/golang/dep && \
|
|
|
|
cd src/github.com/golang/dep && \
|
2018-08-14 21:55:38 +00:00
|
|
|
git checkout -q v0.5.0 && \
|
|
|
|
go install -ldflags="-X main.version=v0.5.0" ./cmd/dep
|