Skip to content

Commit

Permalink
Improve Dockerfile template such that copying vendor dir is cached.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitoy committed Mar 5, 2019
1 parent 4228ca5 commit cfbe7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scaffold/manager/dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ FROM golang:1.10.3 as builder
# Copy in the go src
WORKDIR /go/src/{{ .Repo }}
COPY pkg/ pkg/
COPY cmd/ cmd/
COPY vendor/ vendor/
COPY pkg/ pkg/
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager {{ .Repo }}/cmd/manager
Expand Down

0 comments on commit cfbe7bd

Please sign in to comment.