X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2FDockerfile;h=da9fd44868996e450ecf07940c44efcce92d02a0;hb=4ebf74691af13ecb46bb13b7ccd7241d637de676;hp=f28414ce484cd6471b1fea9b2c73a6fa0d6c3782;hpb=023c1b75327ff105348f9dc8eedc0cbf45e7a419;p=nonrtric.git diff --git a/policy-agent/Dockerfile b/policy-agent/Dockerfile index f28414ce..da9fd448 100644 --- a/policy-agent/Dockerfile +++ b/policy-agent/Dockerfile @@ -19,19 +19,21 @@ # FROM openjdk:11-jre-slim +ARG JAR + WORKDIR /opt/app/policy-agent RUN mkdir -p /var/log/policy-agent RUN mkdir -p /opt/app/policy-agent/etc/cert/ -EXPOSE 8081 +EXPOSE 8081 8433 -ADD /config/application.yaml /opt/app/policy-agent/config/ -ADD /target/policy-agent-1.0.0-SNAPSHOT.jar /opt/app/policy-agent/ +ADD /config/* /opt/app/policy-agent/config/ +ADD target/${JAR} /opt/app/policy-agent/policy-agent.jar RUN chmod -R 777 /opt/app/policy-agent/config/ -CMD ["java", "-jar", "/opt/app/policy-agent/policy-agent-1.0.0-SNAPSHOT.jar"] +CMD ["java", "-jar", "/opt/app/policy-agent/policy-agent.jar"]