Set user in Dockerfile to apexuser 47/56547/1
authormmis <michael.morris@ericsson.com>
Mon, 16 Jul 2018 23:30:34 +0000 (00:30 +0100)
committermmis <michael.morris@ericsson.com>
Mon, 16 Jul 2018 23:34:18 +0000 (00:34 +0100)
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>
packages/apex-pdp-docker/src/main/docker/Dockerfile

index c16469a..14f8a6a 100644 (file)
@@ -32,10 +32,11 @@ RUN chmod a+x /opt/app/policy/apex-pdp/bin/*
 
 # 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