-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
25 lines (21 loc) · 726 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:latest
LABEL maintainer "GCPUG <https://gcpug.jp/>"
ARG GOPATH=/go
ENV GOPATH=${GOPATH} \
PATH=/go/bin:/usr/local/go/bin:$PATH
ARG GOLANG_VERSION=1.13.11
ARG GOLANG_DOWNLOAD_SHA256=a4d71ca9e02923fa96669a4b5faf78ee8331b18e7209b09dd87fe763b4838ada
RUN set -eux && \
apt-get update && \
apt-get install -yqq --no-install-suggests --no-install-recommends \
libc6-dev \
make \
unzip && \
rm -rf /var/lib/apt/lists/* && \
\
curl -o go.tgz -sSL "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
echo "${GOLANG_DOWNLOAD_SHA256} *go.tgz" | sha256sum -c - && \
tar -C /usr/local -xzf go.tgz && \
rm go.tgz && \
mkdir ${GOPATH}
VOLUME ["/root/.config"]