From 0d0612d973d2d0c4eadee06b9ce22893fa708263 Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Mon, 25 Oct 2021 18:56:10 +0000 Subject: [TEST] Fix xtesting security docker build issue Add two go commands to fix build issue. Issue-ID: TEST-367 Signed-off-by: Michal Jagiello Change-Id: I740d5b46448f8ba32061314f6518651162f37975 --- security/docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'security/docker/Dockerfile') diff --git a/security/docker/Dockerfile b/security/docker/Dockerfile index 3565653..89a04c5 100644 --- a/security/docker/Dockerfile +++ b/security/docker/Dockerfile @@ -2,12 +2,14 @@ FROM golang:1.17 AS build_yq WORKDIR /go/src/github.com/mikefarah/ RUN git clone https://github.com/mikefarah/yq.git --depth 1 WORKDIR /go/src/github.com/mikefarah/yq +RUN go mod tidy RUN CGO_ENABLED=0 go install -a -ldflags '-w -s -extldflags "-static"' FROM golang:1.17 AS build_onap WORKDIR /opt/onap RUN git clone https://git.onap.org/integration --depth 1 WORKDIR /opt/onap/integration/test/security/sslendpoints +RUN go mod tidy RUN CGO_ENABLED=0 go install -a -ldflags '-w -s -extldflags "-static"' FROM opnfv/xtesting:wallaby AS run -- cgit 1.2.3-korg