diff --git a/server/docker/app/jdk21-graalvm/Dockerfile b/server/docker/app/jdk21-graalvm/Dockerfile new file mode 100644 index 00000000..fa755df9 --- /dev/null +++ b/server/docker/app/jdk21-graalvm/Dockerfile @@ -0,0 +1,13 @@ +FROM ghcr.io/graalvm/graalvm-community:21.0.2-ol9-20240116 + +WORKDIR /app +ENV JAR=/app/api.jar + +RUN mkdir conf + +COPY docker-entrypoint.sh / +RUN chmod +x /docker-entrypoint.sh + +VOLUME ["/app/data/","/app/log"] +EXPOSE 8080 +ENTRYPOINT ["/docker-entrypoint.sh"] \ No newline at end of file diff --git a/server/docker/app/jdk21-graalvm/docker-entrypoint.sh b/server/docker/app/jdk21-graalvm/docker-entrypoint.sh new file mode 100644 index 00000000..5ad5dcb6 --- /dev/null +++ b/server/docker/app/jdk21-graalvm/docker-entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exec java ${JAVA_OPTS} -jar ${JAR} --spring.config.additional-location=/app/conf/ ${@} \ No newline at end of file