ykl45 commited on
Commit
fb8cbba
1 Parent(s): ec31046

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -15,7 +15,7 @@ RUN --mount=type=secret,id=ZIP_PASSWD,mode=0444,required=true \
15
  version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/wozulong/Palaude/releases/latest)) \
16
  && base_url="https://github.com/wozulong/Palaude/releases/expanded_assets/$version" \
17
  && echo $base_url \
18
- && latest_url=https://github.com/$(curl -sL $base_url | grep "href.*linux-amd64*\.zip" | sed 's/.*href="//' | sed 's/".*//') \
19
  && echo $latest_url \
20
  && curl -Lo palaude.zip $latest_url \
21
  && 7z e -p$(cat /run/secrets/ZIP_PASSWD) palaude.zip \
 
15
  version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/wozulong/Palaude/releases/latest)) \
16
  && base_url="https://github.com/wozulong/Palaude/releases/expanded_assets/$version" \
17
  && echo $base_url \
18
+ && latest_url=https://github.com/$(curl -sL $base_url | grep -o 'href="[^"]*linux-amd64[^"]*\.zip"' | sed 's/.*href="//' | sed 's/".*//') \
19
  && echo $latest_url \
20
  && curl -Lo palaude.zip $latest_url \
21
  && 7z e -p$(cat /run/secrets/ZIP_PASSWD) palaude.zip \