Skip to content

Instantly share code, notes, and snippets.

@hypnguyen1209
Last active December 2, 2021 12:46
Show Gist options
  • Save hypnguyen1209/b2219c30cd1f033734ec1689a8a241b8 to your computer and use it in GitHub Desktop.
Save hypnguyen1209/b2219c30cd1f033734ec1689a8a241b8 to your computer and use it in GitHub Desktop.
Deploy JmusicBot (Discord Music Bot) with Docker
FROM alpine:latest
RUN apk add --no-cache --update wget curl default-jre
WORKDIR /
RUN wget https://raw.githubusercontent.com/jagrosh/MusicBot/master/scripts/run_jmusicbot.sh
RUN cat <<EOT >> config.txt \
token = TOKEN_BOT_HERE \
owner = ID_OWNER \
prefix = "*" \
game = "Listening to music" \
songinstatus=true \
alonetimeuntilstop = 10 \
aliases { \
play = [ p ] \
search = [ yt ] \
nowplaying = [ np ] \
queue = [ q ] \
volume = [ vol ] \
skip = [ next ] \
} \
EOT
RUN chmod +x /run_jmusicbot.sh
ENTRYPOINT ["/run_jmusicbot.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment