Skip to content

Commit

Permalink
Try different userid and root group
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal423 committed Sep 1, 2023
1 parent 5618c4f commit af26c2a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:1.16
ENV LANGUAGE='en_US:en'

# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --chown=185 --chmod=555 target/quarkus-app/lib/ /deployments/lib/
COPY --chown=185 --chmod=555 target/quarkus-app/*.jar /deployments/
COPY --chown=185 --chmod=555 target/quarkus-app/app/ /deployments/app/
COPY --chown=185 --chmod=555 target/quarkus-app/quarkus/ /deployments/quarkus/
COPY --chown=1001:root target/quarkus-app/lib/ /deployments/lib/
COPY --chown=1001:root target/quarkus-app/*.jar /deployments/
COPY --chown=1001:root target/quarkus-app/app/ /deployments/app/
COPY --chown=1001:root target/quarkus-app/quarkus/ /deployments/quarkus/

EXPOSE 8080
USER 185
USER 1001
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"

Expand Down

0 comments on commit af26c2a

Please sign in to comment.