From c90a57b86bc183027b999b75b06231298c06bd9b Mon Sep 17 00:00:00 2001 From: Student User Date: Wed, 7 Jul 2021 06:09:53 -0400 Subject: [PATCH] fixed execute rights and changed the user --- hello-java/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hello-java/Dockerfile b/hello-java/Dockerfile index db3005d..07aa1c1 100644 --- a/hello-java/Dockerfile +++ b/hello-java/Dockerfile @@ -17,12 +17,12 @@ ADD https://github.com/RedHatTraining/DO288-apps/releases/download/OCP-4.1-1/h COPY run-app.sh /opt/app-root/bin/ -RUN chown -R wildfly:wildfly /opt/app-root && \ - chmod -R 700 /opt/app-root +RUN chown -R -0 /opt/app-root && \ + chmod -R g=u /opt/app-root EXPOSE 8080 -USER wildfly +USER 1001 # Run the fat JAR CMD /opt/app-root/bin/run-app.sh