Skip to content

Commit

Permalink
# add graalvm jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Dec 27, 2024
1 parent 8fd3f0a commit a4ec562
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/docker/app/jdk21-graalvm/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
3 changes: 3 additions & 0 deletions server/docker/app/jdk21-graalvm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec java ${JAVA_OPTS} -jar ${JAR} --spring.config.additional-location=/app/conf/ ${@}

0 comments on commit a4ec562

Please sign in to comment.