🔧 Switch back to user 185
This commit is contained in:
parent
1e7233f049
commit
e253ce4228
13
Dockerfile
13
Dockerfile
@ -82,17 +82,14 @@ FROM registry.access.redhat.com/ubi9/openjdk-21:1.21
|
||||
|
||||
ENV LANGUAGE='en_US:en'
|
||||
|
||||
RUN useradd -u 200 -m user
|
||||
|
||||
|
||||
# We make four distinct layers so if there are application changes the library layers can be re-used
|
||||
COPY --chown=200 target/quarkus-app/lib/ /deployments/lib/
|
||||
COPY --chown=200 target/quarkus-app/*.jar /deployments/
|
||||
COPY --chown=200 target/quarkus-app/app/ /deployments/app/
|
||||
COPY --chown=200 target/quarkus-app/quarkus/ /deployments/quarkus/
|
||||
COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
|
||||
COPY --chown=185 target/quarkus-app/*.jar /deployments/
|
||||
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
|
||||
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
|
||||
|
||||
EXPOSE 8080
|
||||
USER 200
|
||||
USER 185
|
||||
|
||||
ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
|
||||
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user