File tree Expand file tree Collapse file tree 3 files changed +77
-0
lines changed Expand file tree Collapse file tree 3 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
2+ LABEL maintainer "GCPUG <https://gcpug.jp/>"
3+
4+ ENV GOPATH=/go \
5+ PATH=/go/bin:/usr/local/go/bin:/google-cloud-sdk/bin:/google-cloud-sdk/platform/google_appengine:$PATH
6+
7+ ARG GOLANG_VERSION=1.18.10
8+ ARG GOLANG_DOWNLOAD_SHA256=740324e52de766f230ad7113fac9028399d6e03af34883de625dc2230ef7927e
9+
10+ RUN apk add --no-cache \
11+ gcc \
12+ libc-dev \
13+ make \
14+ unzip && \
15+ \
16+ gcloud components install \
17+ app-engine-go \
18+ beta && \
19+ chmod +x /google-cloud-sdk/platform/google_appengine/*.py && \
20+ \
21+ curl -o go.tgz -sSL "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
22+ echo "${GOLANG_DOWNLOAD_SHA256} *go.tgz" | sha256sum -c - && \
23+ tar -C /usr/local -xzf go.tgz && \
24+ rm go.tgz
25+
26+ VOLUME ["/root/.config" ]
Original file line number Diff line number Diff line change 1+ FROM gcr.io/google.com/cloudsdktool/cloud-sdk:latest
2+ LABEL maintainer "GCPUG <https://gcpug.jp/>"
3+
4+ ARG GOPATH=/go
5+ ENV GOPATH=${GOPATH} \
6+ PATH=/go/bin:/usr/local/go/bin:$PATH
7+
8+ ARG GOLANG_VERSION=1.18.10
9+ ARG GOLANG_DOWNLOAD_SHA256=740324e52de766f230ad7113fac9028399d6e03af34883de625dc2230ef7927e
10+
11+ RUN set -eux && \
12+ apt-get update && \
13+ apt-get install -yqq --no-install-suggests --no-install-recommends \
14+ libc6-dev \
15+ make \
16+ unzip && \
17+ rm -rf /var/lib/apt/lists/* && \
18+ \
19+ curl -o go.tgz -sSL "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
20+ echo "${GOLANG_DOWNLOAD_SHA256} *go.tgz" | sha256sum -c - && \
21+ tar -C /usr/local -xzf go.tgz && \
22+ rm go.tgz && \
23+ mkdir ${GOPATH}
24+
25+ VOLUME ["/root/.config" ]
Original file line number Diff line number Diff line change 1+ FROM gcr.io/google.com/cloudsdktool/cloud-sdk:slim
2+ LABEL maintainer "GCPUG <https://gcpug.jp/>"
3+
4+ ARG GOPATH=/go
5+ ENV GOPATH=${GOPATH} \
6+ PATH=/go/bin:/usr/local/go/bin:$PATH
7+
8+ ARG GOLANG_VERSION=1.18.10
9+ ARG GOLANG_DOWNLOAD_SHA256=740324e52de766f230ad7113fac9028399d6e03af34883de625dc2230ef7927e
10+
11+ RUN set -eux && \
12+ apt-get update && \
13+ apt-get install -yqq --no-install-suggests --no-install-recommends \
14+ google-cloud-sdk-app-engine-go \
15+ libc6-dev \
16+ make \
17+ unzip && \
18+ rm -rf /var/lib/apt/lists/* && \
19+ \
20+ curl -o go.tgz -sSL "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
21+ echo "${GOLANG_DOWNLOAD_SHA256} *go.tgz" | sha256sum -c - && \
22+ tar -C /usr/local -xzf go.tgz && \
23+ rm go.tgz && \
24+ mkdir ${GOPATH}
25+
26+ VOLUME ["/root/.config" ]
You can’t perform that action at this time.
0 commit comments