-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (22 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
26 lines (22 loc) · 764 Bytes
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
26
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:slim
LABEL maintainer "GCPUG <https://gcpug.jp/>"
ARG GOPATH=/go
ENV GOPATH=${GOPATH} \
PATH=/go/bin:/usr/local/go/bin:$PATH
ARG GOLANG_VERSION=1.16.7
ARG GOLANG_DOWNLOAD_SHA256=7fe7a73f55ba3e2285da36f8b085e5c0159e9564ef5f63ee0ed6b818ade8ef04
RUN set -eux && \
apt-get update && \
apt-get install -yqq --no-install-suggests --no-install-recommends \
google-cloud-sdk-app-engine-go \
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"]