Skip to content

Commit

Permalink
Add go mod vendor in dockerfile build step
Browse files Browse the repository at this point in the history
  • Loading branch information
rytswd committed Nov 26, 2022
1 parent d96b196 commit f331d50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}

COPY . .

RUN go mod vendor

RUN CGO_ENABLED=0 go build ./cmd/merge-gatekeeper \
&& mv merge-gatekeeper /go/bin/

Expand Down

0 comments on commit f331d50

Please sign in to comment.