Skip to content

Commit

Permalink
Add Dockerfile - closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
sks316 committed May 4, 2024
1 parent 7d10280 commit efc8706
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM openjdk:11-jre-slim

ENV JMB_VERSION 0.4.0-bypass

#No downloadable example config since 0.2.10
RUN mkdir -p /jmb/config
ADD https://github.com/sks316/MusicBot/releases/download/$JMB_VERSION/JMusicBot-$JMB_VERSION.jar /jmb/JMusicBot.jar
ADD https://github.com/jagrosh/MusicBot/releases/download/0.2.9/config.txt /jmb/config/config.txt

COPY ./docker-entrypoint.sh /jmb
COPY ./config.txt /jmb/config

RUN chmod +x /jmb/docker-entrypoint.sh

ENTRYPOINT ["/jmb/docker-entrypoint.sh"]
13 changes: 13 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

echo "Starting JMusicBot by Jagrosh https://github.com/jagrosh/MusicBot"
echo "Using JMusicBot-bypass fork by sks316 https://github.com/sks316/MusicBot"
echo "Containerized by Craumix https://github.com/Craumix/jmb-container"
echo "Version: $JMB_VERSION"

cd /jmb/config
java -jar -Dnogui=true /jmb/JMusicBot.jar

echo "Seems like java stopped... Waiting for 30 seconds before termination..."
sleep 30s
echo "Terminating!"

0 comments on commit efc8706

Please sign in to comment.