mirror of
https://github.com/devproje/px32-bot.git
synced 2024-11-26 10:43:05 +00:00
12 lines
236 B
Docker
12 lines
236 B
Docker
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"]
|