Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 authored Feb 1, 2024
1 parent e989c52 commit 3cf179c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM debian AS installer
WORKDIR /src

RUN apt-get update && apt-get install -y curl jq
RUN curl https://api.github.com/repos/jagrosh/MusicBot/releases | jq .[0].tag_name
RUN echo "Version: $VERSION"
RUN curl -L -o JMusicBot.jar https://github.com/jagrosh/MusicBot/releases/download/$VERSION/JMusicBot-$VERSION.jar
RUN export JMUSIC_VERSION=$(curl https://api.github.com/repos/jagrosh/MusicBot/releases | jq -r .[0].tag_name)
RUN echo $JMUSIC_VERSION
RUN curl -L -o JMusicBot.jar https://github.com/jagrosh/MusicBot/releases/download/$JMUSIC_VERSION/JMusicBot-$JMUSIC_VERSION.jar

FROM debian

Expand Down

0 comments on commit 3cf179c

Please sign in to comment.