Fix re code

This commit is contained in:
EstrellaXD
2023-03-05 18:25:52 +08:00
parent c3a470d4d3
commit b13fb66026
7 changed files with 9 additions and 89 deletions

View File

@@ -26,9 +26,9 @@ RUN apk add --no-cache \
bash
# Download WebUI
RUN wget https://github.com/Rewrite0/Auto_Bangumi_WebUI/releases/download/v1.0.4/dist.zip && \
RUN wget "https://github.com/Rewrite0/Auto_Bangumi_WebUI/releases/download/$(curl 'https://api.github.com/repos/Rewrite0/Auto_Bangumi_WebUI/releases/latest' | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g')/dist.zip" && \
unzip dist.zip && \
mv dist template
mv dist templates
RUN addgroup -S auto_bangumi -g 1000 && \
adduser -S auto_bangumi -G auto_bangumi -h /home/auto_bangumi -u 1000 && \