From fe124420813d64c456ca42a0acfa9f589612bc5f Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 19 Sep 2021 18:28:44 -0500 Subject: [PATCH] upload files --- Dockerfile | 17 +++++++++++++++++ run_bot.sh | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 Dockerfile create mode 100644 run_bot.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..910eac2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM alpine:latest + +ENV VERSION 0.3.5 +ENV PUID=1000 PGID=1000 + +RUN apk --update add --no-cache openjdk11-jre + +RUN mkdir /app +RUN mkdir /config + +COPY run_bot.sh /app/run_bot.sh +RUN chmod +x /app/run_bot.sh + +WORKDIR /app +VOLUME /config + +CMD ["/bin/sh","./run_bot.sh"] diff --git a/run_bot.sh b/run_bot.sh new file mode 100644 index 0000000..96cea8c --- /dev/null +++ b/run_bot.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +echo "Starting JMusicBot" + +if [ ! -f JMusicBot-${VERSION}.jar ]; then + wget https://github.com/jagrosh/MusicBot/releases/download/${VERSION}/JMusicBot-${VERSION}.jar +fi + +java -Dnogui=true -Dconfig=/config/config.txt -jar JMusicBot-${VERSION}.jar