diff options
author | Jan Malkiewicz <jan.malkiewicz@nokia.com> | 2020-09-30 13:39:08 +0200 |
---|---|---|
committer | Jan Malkiewicz <jan.malkiewicz@nokia.com> | 2020-09-30 13:49:01 +0200 |
commit | ba53716a2d89ca195639fd8d5e0b4243fc6e8342 (patch) | |
tree | f7288bddbe7f500df2f48ae931cdb1331259c5f8 /certServiceK8sExternalProvider | |
parent | 93fdf569416a631dfc9aa0f5e0173c70a70d931a (diff) |
[OOM-K8S-CERT-EXTERNAL-PROVIDER] Fix Dockerfile
Issue-ID: OOM-2559
Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com>
Change-Id: Ie957e9f5deb5cc5f934765bee8e612bb9e517c2c
Diffstat (limited to 'certServiceK8sExternalProvider')
-rw-r--r-- | certServiceK8sExternalProvider/Dockerfile | 2 | ||||
-rw-r--r-- | certServiceK8sExternalProvider/pom.xml | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/certServiceK8sExternalProvider/Dockerfile b/certServiceK8sExternalProvider/Dockerfile index baea932b..c6c34a85 100644 --- a/certServiceK8sExternalProvider/Dockerfile +++ b/certServiceK8sExternalProvider/Dockerfile @@ -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 diff --git a/certServiceK8sExternalProvider/pom.xml b/certServiceK8sExternalProvider/pom.xml index 6be62b77..2b999837 100644 --- a/certServiceK8sExternalProvider/pom.xml +++ b/certServiceK8sExternalProvider/pom.xml @@ -53,6 +53,8 @@ <configuration> <packages> <package>onap.org/oom-certservice/k8s-external-provider</package> + <package>onap.org/oom-certservice/k8s-external-provider/main</package> + <package>onap.org/oom-certservice/k8s-external-provider/certservice-provisioner</package> </packages> </configuration> </execution> |