From d229298c2ccafc044eec8037f1d7838907af84b0 Mon Sep 17 00:00:00 2001 From: thinkAfCod Date: Tue, 9 Jul 2024 21:53:07 +0800 Subject: [PATCH] Create Dockerfile --- docker/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..82eb6990 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,15 @@ +FROM ghcr.io/graalvm/graalvm-community:21 as builder + +WORKDIR /root/hildr +COPY . . +RUN ./gradlew clean buildJarForDocker + +FROM ghcr.io/graalvm/graalvm-community:21 + +WORKDIR /usr/local/bin +COPY --from=builder /root/hildr/hildr-node/build/docker/hildr-node.jar . +COPY --from=builder /root/hildr/docker/start-hildr-node.sh . +ENV HILDR_JAR /usr/local/bin/hildr-node.jar +ENV HILDR_MAIN_CLASS io.optimism.Hildr + +ENTRYPOINT ["java", "--enable-preview", "-cp" , "/usr/local/bin/hildr-node.jar", "io.optimism.Hildr"]