Skip to content

Commit 3cb01cf

Browse files
committed
Dockerfile: extract build-base package
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 8a4633f commit 3cb01cf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ ENV \
4646
GO111MODULE=on
4747
RUN set -eux && \
4848
apk add --no-cache \
49-
build-base \
49+
binutils \
50+
gcc \
5051
git \
52+
libc-dev \
53+
linux-headers \
5154
musl-dev
5255
ARG PROTOC_GEN_GO_VERSION
5356
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache \

cloudbuild.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ steps:
104104
- --build-arg=ALPINE_VERSION=${_ALPINE_VERSION}
105105
- --build-arg=PROTOC_GEN_GO_VERSION=${_PROTOC_GEN_GO_VERSION}
106106
- --build-arg=PROTOC_GEN_GO_GRPC_VERSION=${_PROTOC_GEN_GO_GRPC_VERSION}
107-
- --tag="gcr.io/$PROJECT_ID/protoc/golang:${_PR_NUMBER:-${_PROTOC_VERSION}-${_GOLANG_VERSION}}"
107+
- --tag=gcr.io/$PROJECT_ID/protoc/golang:${_PROTOC_VERSION}-${_GOLANG_VERSION}
108108
- --load
109109
- .
110110
waitFor:
@@ -121,7 +121,7 @@ steps:
121121
- --build-arg=ALPINE_VERSION=${_ALPINE_VERSION}
122122
- --build-arg=PROTOC_GEN_GO_VERSION=${_PROTOC_GEN_GO_VERSION}
123123
- --build-arg=PROTOC_GEN_GO_GRPC_VERSION=${_PROTOC_GEN_GO_GRPC_VERSION}
124-
- --tag="gcr.io/$PROJECT_ID/protoc/golang:${_PR_NUMBER:-${_PROTOC_VERSION}-${_GOLANG_VERSION}}-debug"
124+
- --tag=gcr.io/$PROJECT_ID/protoc/golang:${_PROTOC_VERSION}-${_GOLANG_VERSION}-debug
125125
- --load
126126
- .
127127
waitFor:

0 commit comments

Comments
 (0)