X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=https-server%2FDockerfile;h=7792de23e6635cd0006bf0b207064f04a10e4bdc;hb=HEAD;hp=941acb2e0b4532f64eff376603f3a57c6aa19d6a;hpb=d806dbef4f43bb9c631c818e96c1a39e440c5e6c;p=nonrtric%2Fplt%2Franpm.git diff --git a/https-server/Dockerfile b/https-server/Dockerfile index 941acb2..7792de2 100644 --- a/https-server/Dockerfile +++ b/https-server/Dockerfile @@ -15,12 +15,14 @@ # ============LICENSE_END================================================= # -FROM golang:1.19-bullseye AS build +FROM golang:1.20.3-buster AS build + WORKDIR /app -COPY go.mod . -COPY go.sum . -RUN go mod download + COPY main.go . +RUN go mod init main +RUN go mod tidy + RUN go build -o /pm-https-server #Replaced distroless image with ubuntu for debug purposes