feat: add jre to PATH instead of symlinking
This commit is contained in:
parent
250fff2b47
commit
2e5a7247a7
1 changed files with 1 additions and 2 deletions
|
@ -47,9 +47,8 @@ RUN mv ./* /build/dist/
|
||||||
FROM ubuntu:24.10 AS run
|
FROM ubuntu:24.10 AS run
|
||||||
|
|
||||||
COPY --from=build /build/dist/jre /usr/lib/jvm/openj9-jre
|
COPY --from=build /build/dist/jre /usr/lib/jvm/openj9-jre
|
||||||
RUN ln -s /usr/lib/jvm/openj9-jre/bin/java /usr/bin/java
|
|
||||||
|
|
||||||
ENV JAVA_HOME=/usr/lib/jvm/openj9-jre
|
ENV JAVA_HOME=/usr/lib/jvm/openj9-jre
|
||||||
|
ENV PATH="$JAVA_HOME/bin:$PATH"
|
||||||
|
|
||||||
# verify installation
|
# verify installation
|
||||||
RUN java --version
|
RUN java --version
|
||||||
|
|
Loading…
Add table
Reference in a new issue