forked from xmlking/grpc-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(docker): updated docker base image and dockerfiles
- Loading branch information
Showing
52 changed files
with
378 additions
and
1,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM golang:1.14-alpine | ||
|
||
RUN mkdir /user && \ | ||
echo 'nobody:x:65534:65534:nobody:/:' > /user/passwd && \ | ||
echo 'nobody:x:65534:' > /user/group && \ | ||
apk --no-cache add make git gcc libtool musl-dev ca-certificates dumb-init && \ | ||
rm -rf /var/cache/apk/* /tmp/* && \ | ||
GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \ | ||
wget -q -O /bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ | ||
chmod +x /bin/grpc_health_probe | ||
|
||
ENV GO111MODULE=on | ||
|
||
WORKDIR / | ||
COPY ./go.mod ./go.sum ./ | ||
RUN go mod download && rm go.mod go.sum | ||
|
||
# Metadata params | ||
ARG BUILD_DATE | ||
ARG VCS_URL=grpc-starter-kit | ||
ARG VCS_REF=1 | ||
ARG VENDOR=sumo | ||
|
||
# Metadata | ||
LABEL org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name="base" \ | ||
org.label-schema.description="grpc-starter-kit base docker image" \ | ||
org.label-schema.url="https://example.com" \ | ||
org.label-schema.vcs-url=https://github.com/xmlking/$VCS_URL \ | ||
org.label-schema.vcs-ref=$VCS_REF \ | ||
org.label-schema.vendor=$VENDOR \ | ||
org.label-schema.version=$VERSION \ | ||
org.label-schema.docker.schema-version="1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.