diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-10-25 18:56:10 +0000 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-10-25 18:56:10 +0000 |
commit | 0d0612d973d2d0c4eadee06b9ce22893fa708263 (patch) | |
tree | adbd393fba31344ed0d4888f1063e9fe8c74823c /security | |
parent | 4a71cb63ab876d3d0535da0e4e70d851480a4dd7 (diff) |
[TEST] Fix xtesting security docker build issue
Add two go commands to fix build issue.
Issue-ID: TEST-367
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I740d5b46448f8ba32061314f6518651162f37975
Diffstat (limited to 'security')
-rw-r--r-- | security/docker/Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
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 |