forked from jagrosh/MusicBot
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
20 lines (15 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# JMusicBot JP Docker container configuration file
# Maintained by CyberRex (CyberRex0)
FROM openjdk:11-buster
# DO NOT EDIT UNDER THIS LINE
RUN mkdir -p /opt/jmusicbot
WORKDIR /opt/jmusicbot
RUN \
echo "JMusicBot-JP Docker Container Builder v1.1\nMaintained by CyberRex (CyberRex0)"; \
echo "Preconfiguring apt..." & apt-get update > /dev/null; \
echo "Installing packages..." & apt-get install -y ffmpeg wget curl jq > /dev/null; \
echo "Downloading latest version of JMusicBot-JP..."; \
wget $(curl https://api.github.com/repos/Cosgy-Dev/JMusicBot-JP/releases/latest | jq -r '.assets[] | select(.browser_download_url | contains(".jar")) | .browser_download_url') -O /opt/jmusicbot/jmusicbot.jar; \
echo "cd /opt/jmusicbot && java -Dnogui=true -jar jmusicbot.jar" > /opt/jmusicbot/execute.bash; \
echo "Build Completed."
CMD ["bash", "/opt/jmusicbot/execute.bash"]