summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-07-17 13:57:24 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-17 13:57:24 +0000
commit3496c43f71e2eb3e34b015a5eb8ab5b827efef1c (patch)
treed10039fa5c186d2739977b769997fd8f70627708
parentae2728b53c495afb9949cf16e3cec4f5d937df6a (diff)
parenteed7a08de7553cb8c8caa3041e0528608a27d33d (diff)
Merge "Set user in Dockerfile to apexuser"
-rw-r--r--packages/apex-pdp-docker/src/main/docker/Dockerfile7
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