Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
artxia authored Mar 26, 2022
1 parent 0cadb02 commit f33cab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM alpine:latest AS loader

RUN apk --no-cache upgrade \
&& apk add --no-cache --update curl unzip \
&& MCL_VERSION=$v1.2.3 \
&& HTTP_VERSION=$v2.5.0 \
&& MCL_VERSION=$(curl -sX GET "https://api.github.com/repos/itxtech/mirai-console-loader/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]') \
&& HTTP_VERSION=$(curl -sX GET "https://api.github.com/repos/project-mirai/mirai-api-http/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]') \
&& curl -so mcl.zip -L \
"https://github.com/itxtech/mirai-console-loader/releases/download/${MCL_VERSION}/mcl-${MCL_VERSION#v}.zip" \
&& unzip -q -o mcl.zip -d /mcl \
Expand Down

0 comments on commit f33cab0

Please sign in to comment.