feat: dockerfile

This commit is contained in:
Project_IO 2024-09-02 00:35:16 +09:00
parent fd9d3844de
commit 3478cfc229
2 changed files with 16 additions and 0 deletions

12
Dockerfile Normal file
View file

@ -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"]

4
compose.yml Normal file
View file

@ -0,0 +1,4 @@
version: "3.9"
services:
bot: {}