mirror of
https://github.com/devproje/px32-bot.git
synced 2024-11-26 10:43:05 +00:00
feat: dockerfile
This commit is contained in:
parent
fd9d3844de
commit
3478cfc229
2 changed files with 16 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
4
compose.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
version: "3.9"
|
||||
|
||||
services:
|
||||
bot: {}
|
Loading…
Reference in a new issue