From 3cf179c67ea4b4b326b3d0b47d8a6efd07abe587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA=E8=A1=9B?= =?UTF-8?q?=E9=9A=8A?= Date: Fri, 2 Feb 2024 08:36:48 +0900 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c41af01..f8383a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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