This commit is contained in:
Ash Leece 2021-08-26 00:05:31 +01:00
commit bf8ff13f7e
4 changed files with 18 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config.txt

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM openjdk:11-jre-buster
RUN mkdir /data/
WORKDIR /data/
COPY fetch.sh .
RUN [ "./fetch.sh" ]
CMD [ "java", "-Dnogui=true", "-jar", "jmusicbot.jar" ]

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: '3.0'
services:
musicbot:
build: .
container_name: musicbot
volumes:
- ./config.txt:/data/config.txt
restart: unless-stopped

3
fetch.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
tail=$(curl -L https://github.com/jagrosh/MusicBot/releases/latest | grep -oP "/jagrosh/MusicBot/releases/download/.*.jar")
curl -L "https://github.com$tail" -o /data/jmusicbot.jar