Set the user in Dockerfile to apexuser so as the user will be set to
apexuser upon container starts up. Only apexuser is permitted to start
apex.
Issue-ID: POLICY-866
Change-Id: Ib9e29503d8fc252760df6385a78f353e8961c3d2
Signed-off-by: mmis <michael.morris@ericsson.com>
# Copy examples to Apex user area
RUN cp -pr /opt/app/policy/apex-pdp/examples /home/apexuser
-
-ENV PATH /opt/app/policy/apex-pdp/bin:$PATH
-
+
RUN apt-get clean
RUN chown -R apexuser:apexuser /home/apexuser/*
+
+USER apexuser
+ENV PATH /opt/app/policy/apex-pdp/bin:$PATH
WORKDIR /home/apexuser