X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=3321629b0da36abacc912b3ed9b4ce1461bf24aa;hb=refs%2Fchanges%2F68%2F9568%2F4;hp=0d5642f7a15ffe886c7fd3e4ec3f98f2bfd3821a;hpb=4c03ef49ecc01183ef04e8dbf7c6fdca8d7b61f8;p=ric-plt%2Fricdms.git 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 \