aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/apex-pdp-docker/src/main/docker/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/apex-pdp-docker/src/main/docker/Dockerfile b/packages/apex-pdp-docker/src/main/docker/Dockerfile
index 5ae7a7c7a..7f208dac3 100644
--- a/packages/apex-pdp-docker/src/main/docker/Dockerfile
+++ b/packages/apex-pdp-docker/src/main/docker/Dockerfile
@@ -33,9 +33,10 @@ RUN find /opt/app -type d -perm 755 \
&& find /opt/app -type f -perm 644 \
&& chmod 755 $POLICY_HOME/bin/*
-# Copy examples to Apex user area
+# Copy examples to Apex user area and make apexuser as the owner for files in POLICY_HOME
RUN cp -pr $POLICY_HOME/examples /home/apexuser \
- && chown -R apexuser:apexuser /home/apexuser/*
+ && chown -R apexuser:apexuser /home/apexuser/* $POLICY_HOME \
+ && chmod 755 $POLICY_HOME/etc/*
USER apexuser
ENV PATH $POLICY_HOME/bin:$PATH