upload files

This commit is contained in:
josh 2021-09-19 18:28:44 -05:00
parent 260c22a5b7
commit fe12442081
2 changed files with 26 additions and 0 deletions

17
Dockerfile Normal file
View file

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

9
run_bot.sh Normal file
View file

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