#==================================================================================
-# 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.
# 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).
#==================================================================================
##
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"]