fixed execute rights and changed the user

This commit is contained in:
Student User 2021-07-07 06:09:53 -04:00
parent 20d773370e
commit c90a57b86b

View file

@ -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/ COPY run-app.sh /opt/app-root/bin/
RUN chown -R wildfly:wildfly /opt/app-root && \ RUN chown -R -0 /opt/app-root && \
chmod -R 700 /opt/app-root chmod -R g=u /opt/app-root
EXPOSE 8080 EXPOSE 8080
USER wildfly USER 1001
# Run the fat JAR # Run the fat JAR
CMD /opt/app-root/bin/run-app.sh CMD /opt/app-root/bin/run-app.sh