Skip to content

Commit

Permalink
feat: update graalvm version
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Jul 31, 2024
1 parent b196f56 commit b4b2951
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions service/Dockerfile.graalvm
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ COPY . /app
WORKDIR /app

RUN mv "$(lein uberjar | sed -n 's/^Created \(.*standalone\.jar\)/\1/p')" app-standalone.jar

FROM ghcr.io/graalvm/graalvm-ce:java8-21.1.0 AS BASE

RUN gu install native-image
FROM container-registry.oracle.com/graalvm/native-image:22 AS BASE

COPY --from=CLJ /app/app-standalone.jar /app/app-standalone.jar
WORKDIR /app
Expand All @@ -32,10 +29,11 @@ COPY --from=BASE /lib64/libdl.so.2 /lib64/libdl.so.2
COPY --from=BASE /lib64/libpthread.so.0 /lib64/libpthread.so.0
COPY --from=BASE /lib64/libz.so.1 /lib64/libz.so.1
COPY --from=BASE /lib64/librt.so.1 /lib64/librt.so.1
COPY --from=BASE /lib64/libcrypt.so.1 /lib64/libcrypt.so.1
COPY --from=BASE /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
# COPY --from=BASE /lib64/libfreebl3.so /lib64/libfreebl3.so

COPY --from=BASE /app/app-standalone /

CMD ["/app-standalone"]

EXPOSE 8080

0 comments on commit b4b2951

Please sign in to comment.