From be3a036a01ca73d2959aadc1c5f9b71ec569ac95 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Mon, 14 Nov 2022 06:35:32 +0000 Subject: [PATCH] Update golang version Update golang version for updated image. Signed-off-by: subhash kumar singh Change-Id: I0044b7ebf3286915779fe4072612372d93683df0 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0d5642f..3321629 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ #----------------------------------------------------------- -FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 AS dms-build +FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu20-c-go:1.1.0 AS dms-build RUN apt-get update -y && apt-get install -y jq @@ -42,7 +42,7 @@ WORKDIR "/go/src/ws" # Module prepare (if go.mod/go.sum updated) COPY go.mod /go/src/ws COPY go.sum /go/src/ws -RUN GO111MODULE=on go mod download +RUN go mod download # build and test COPY . /go/src/ws @@ -51,7 +51,7 @@ COPY . /go/src/ws RUN /go/bin/swagger generate server -f api/ric-dms-api-2.0.yaml -t pkg/ --exclude-main # Build the code -RUN GO111MODULE=on GO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/src/ws/cache/go/cmd/ric-dms cmd/ric-dms.go +RUN go build -a -installsuffix cgo -o /go/src/ws/cache/go/cmd/ric-dms cmd/ric-dms.go # Run unit tests #RUN GO111MODULE=on GO_ENABLED=0 GOOS=linux go test -p 1 -cover ./pkg/resthooks/ @@ -62,7 +62,7 @@ CMD ["/bin/bash"] #---------------------------------------------------------- -FROM ubuntu:18.04 as ric-dms +FROM ubuntu:20.04 as ric-dms RUN apt-get update -y \ && apt-get install --reinstall -y sudo openssl ca-certificates ca-cacert \ -- 2.16.6