Code Review
/
nonrtric
/
plt
/
sme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NONRTRIC-946: Servicemanager - update README and fix stand-alone deployment
[nonrtric/plt/sme.git]
/
capifcore
/
Dockerfile
diff --git
a/capifcore/Dockerfile
b/capifcore/Dockerfile
index
ed97579
..
1c0c9e4
100644
(file)
--- 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.
#
# 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.
#
# 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 . .
COPY go.sum .
RUN go mod download
COPY . .
-RUN go build -o /capifcore
+RUN go build -o /capifcore
cmd/main.go
##
## Deploy
##
##
## Deploy
##
-FROM
gcr.io/distroless/base-debian11
+FROM
ubuntu
WORKDIR /
## Copy from "build" stage
COPY --from=build /capifcore .
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"]
ENTRYPOINT ["/capifcore"]