[OOM-K8S-CERT-EXTERNAL-PROVIDER] Fix Dockerfile
[oom/platform/cert-service.git] / certServiceK8sExternalProvider / Dockerfile
index baea932..c6c34a8 100644 (file)
@@ -4,12 +4,14 @@ FROM golang:1.15.2 as builder
 WORKDIR /workspace
 # Copy the Go Modules manifests
 COPY go.* ./
+
 # cache deps before building and copying source so that we don't need to re-download as much
 # and so that source changes don't invalidate our downloaded layer
 RUN go mod download
 
 # Copy the go source
 COPY main.go main.go
+COPY src/ ./src
 
 # Build
 RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o oom-certservice-k8s-external-provider main.go