Skip to content

Commit df3c535

Browse files
committed
Modify Dockerfile to consolidate destination path for image scripts and also remove ENV setting as they are taken care in run-java.sh
Signed-off-by: Jayashree Huttanagoudar <[email protected]>
1 parent 56f8b60 commit df3c535

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

templates/jlink/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,14 @@ FROM registry.access.redhat.com/ubi9/ubi-micro AS lean-runtime
1818
COPY --from=ubi9-jlinked-image /mnt/jrootfs/ /
1919
COPY --from=ubi9-jlinked-image /deployments /deployments
2020
COPY --from=ubi9-jlinked-image /tmp/jre /usr/lib/jvm/java
21-
COPY --from=ubi9-jlinked-image /opt/jboss/container/java/run/run-java.sh /opt/jboss/container/java/run/run-java.sh
22-
COPY --from=ubi9-jlinked-image /opt/jboss/container/util/logging/logging.sh /opt/jboss/container/util/logging/logging.sh
23-
COPY --from=ubi9-jlinked-image /opt/jboss/container/java/run/run-env.sh /opt/jboss/container/java/run/run-env.sh
24-
RUN ls -LR /opt/jboss/container/
21+
COPY --from=ubi9-jlinked-image /opt/jboss/container/ /opt/jboss/container/
22+
RUN ls -la /opt/jboss/container/*
2523

2624
ENV JAVA_HOME="/usr/lib/jvm/java"
2725
RUN echo $JAVA_HOME
2826

2927
ENV PATH="$JAVA_HOME/bin/:$PATH"
3028
RUN echo $PATH
3129

32-
ENV JBOSS_CONTAINER_UTIL_LOGGING_MODULE=/opt/jboss/container/util/logging
33-
ENV JBOSS_CONTAINER_JAVA_RUN_MODULE=/opt/jboss/container/java/run
34-
3530
CMD /opt/jboss/container/java/run/run-java.sh
3631

0 commit comments

Comments
 (0)