#
# ============LICENSE_START=======================================================
# Copyright (C) 2019-2023 Nordix Foundation.
+# 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.
ENV JAVA_HOME=/jre
ENV PATH="${JAVA_HOME}/bin:${PATH}"
-#copy JRE from the base image
+# Copy JRE from the base image
COPY --from=jre-build /customjre $JAVA_HOME
ARG JAR
WORKDIR /opt/app/policy-agent
RUN mkdir -p /var/log/policy-agent
RUN mkdir -p /opt/app/policy-agent/etc/cert/
+RUN mkdir -p /var/policy-management-service
EXPOSE 8081 8433
ADD /config/application.yaml /opt/app/policy-agent/config/application.yaml
useradd -r -g $group $user
RUN chown -R $user:$group /opt/app/policy-agent
RUN chown -R $user:$group /var/log/policy-agent
+RUN chown -R $user:$group /var/policy-management-service
USER ${user}