Skip to content

Commit

Permalink
caching go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
koin612 committed Mar 11, 2021
1 parent 3a7e456 commit 1a1dca3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ldp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@

FROM golang:1.15 AS build

ADD . /go/src/github.com/membrane/local-directory-provisioner/ldp
ADD go.mod /go/src/github.com/membrane/local-directory-provisioner/ldp/
ADD go.sum /go/src/github.com/membrane/local-directory-provisioner/ldp/
WORKDIR /go/src/github.com/membrane/local-directory-provisioner/ldp
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
RUN go mod download
ADD . /go/src/github.com/membrane/local-directory-provisioner/ldp
RUN go build -a -ldflags '-extldflags "-static"' -o /go/bin/local-directory-provisioner local-directory-provisioner.go


Expand Down

0 comments on commit 1a1dca3

Please sign in to comment.