Skip to content

Commit

Permalink
Upgrade to Golang 1.16.12 and improve docker image creation speed
Browse files Browse the repository at this point in the history
  • Loading branch information
vsabella committed Jan 3, 2022
1 parent 04ef739 commit 3eff8e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,9 +1,10 @@
bin
debug.test
.vscode
.idea
/vendor/
/tmp/
/.tools/
*.tmp
test.yaml
coverage.txt
coverage.txt
7 changes: 5 additions & 2 deletions Dockerfile
@@ -1,6 +1,6 @@
ARG BASEIMAGE=gcr.io/distroless/static:nonroot
ARG BASE_ALPINE=alpine:3.14
ARG GO_VERSION=1.16.9
ARG GO_VERSION=1.16.12

# -------
# Builder
Expand All @@ -11,8 +11,11 @@ ARG VCS_REF=noref
ARG BUILD_SUB_TARGET

WORKDIR /go/src/${PACKAGE}
ADD . .

ADD go.mod go.sum /go/src/${PACKAGE}
RUN go mod download

ADD . .
RUN GIT_TAG=${VCS_REF} make build${BUILD_SUB_TARGET}

# ------------
Expand Down

0 comments on commit 3eff8e5

Please sign in to comment.