X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=capifcore%2FDockerfile;h=1c0c9e4d651e47743a08f4e3e41000a39da32d29;hb=refs%2Fchanges%2F53%2F12753%2F2;hp=ed97579382dc522be78f975bcd4a882a1c981f6a;hpb=c9e08b2a2f647f9f870040570c5e71305f0fb5d2;p=nonrtric%2Fplt%2Fsme.git diff --git a/capifcore/Dockerfile b/capifcore/Dockerfile index ed97579..1c0c9e4 100644 --- a/capifcore/Dockerfile +++ b/capifcore/Dockerfile @@ -1,5 +1,6 @@ #================================================================================== -# Copyright (C) 2022: Nordix Foundation +# Copyright (C) 2022-2023: Nordix Foundation. All rights reserved. +# Copyright (C) 2024: OpenInfra Foundation Europe. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# This source code is part of the near-RT RIC (RAN Intelligent Controller) -# platform project (RICP). #================================================================================== ## @@ -26,13 +25,20 @@ COPY go.mod . COPY go.sum . RUN go mod download COPY . . -RUN go build -o /capifcore +RUN go build -o /capifcore cmd/main.go ## ## Deploy ## -FROM gcr.io/distroless/base-debian11 +FROM ubuntu WORKDIR / ## Copy from "build" stage COPY --from=build /capifcore . -USER nonroot:nonroot + +RUN mkdir /configs +RUN mkdir /certs + +COPY configs/keycloak.yaml /configs/keycloak.yaml +COPY certs/cert.pem /certs/cert.pem +COPY certs/key.pem /certs/key.pem + ENTRYPOINT ["/capifcore"]