From 3478cfc22952624fa193f25366013883f6e924bb Mon Sep 17 00:00:00 2001 From: Project_IO Date: Mon, 2 Sep 2024 00:35:16 +0900 Subject: [PATCH] feat: dockerfile --- Dockerfile | 12 ++++++++++++ compose.yml | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ae2ff46 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ghcr.io/graalvm/jdk:21 + +ARG TOKEN +ENV TOKEN=${TOKEN} + +WORKDIR /opt/bot/src + +COPY . . +RUN ./gradlew shadowJar +RUN cp ./build/libs/px32-bot.jar ../ + +ENTRYPOINT ["BOT_TOKEN=${TOKEN}", "java", "-Xmx4096M", "-jar", "/opt/px32-bot.jar"] diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..e55704b --- /dev/null +++ b/compose.yml @@ -0,0 +1,4 @@ +version: "3.9" + +services: + bot: {}