X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=r-app-catalogue%2FDockerfile;fp=r-app-catalogue%2FDockerfile;h=a85f57d6938886b32a0406e32872d1ecc5ea51c8;hb=5ada515a9b796bdcb0a78c7fd4eb3512bd21c031;hp=0000000000000000000000000000000000000000;hpb=b5cb68ea0e77d0a1421b4f17cc58b981628c29f7;p=nonrtric.git diff --git a/r-app-catalogue/Dockerfile b/r-app-catalogue/Dockerfile new file mode 100644 index 00000000..a85f57d6 --- /dev/null +++ b/r-app-catalogue/Dockerfile @@ -0,0 +1,39 @@ +# +# ============LICENSE_START======================================================= +# Copyright (C) 2020 Nordix Foundation. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +# +FROM openjdk:11-jre-slim + +ARG JAR + +WORKDIR /opt/app/r-app-catalogue +RUN mkdir -p /var/log/r-app-catalogue + +EXPOSE 8081 8433 + +ADD /config/application.yaml /opt/app/r-app-catalogue/config/application.yaml +ADD target/${JAR} /opt/app/r-app-catalogue/r-app-catalogue.jar + + +RUN chmod -R 777 /opt/app/r-app-catalogue/config/ + +CMD ["java", "-jar", "/opt/app/r-app-catalogue/r-app-catalogue.jar"] + + + +