diff options
author | mmis <michael.morris@ericsson.com> | 2018-07-17 00:30:34 +0100 |
---|---|---|
committer | mmis <michael.morris@ericsson.com> | 2018-07-17 00:34:18 +0100 |
commit | eed7a08de7553cb8c8caa3041e0528608a27d33d (patch) | |
tree | e834323410f4464fdf7e827faa2382e8f2c7051e /packages | |
parent | 1eb5198939bd1d60665ff49e49763d0067c1bcb5 (diff) |
Set user in Dockerfile to apexuser
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>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/apex-pdp-docker/src/main/docker/Dockerfile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/apex-pdp-docker/src/main/docker/Dockerfile b/packages/apex-pdp-docker/src/main/docker/Dockerfile index c16469a84..14f8a6a27 100644 --- a/packages/apex-pdp-docker/src/main/docker/Dockerfile +++ b/packages/apex-pdp-docker/src/main/docker/Dockerfile @@ -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 |