Skip to content

Commit

Permalink
use bsdtar to extract zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasheld committed Oct 24, 2024
1 parent 1f9e045 commit 54ac2a9
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 @@ -14,11 +14,11 @@ ARG TELERISING_API_URL

RUN set -x \
&& apk add --no-cache su-exec \
&& apk add --no-cache --virtual build-dependencies jq \
&& apk add --no-cache --virtual build-dependencies jq libarchive-tools \
&& if [ -z ${TELERISING_API_URL} ]; then \
TELERISING_API_URL=$(wget -qO- https://api.github.com/repos/sunsettrack4/telerising-api/contents | jq -r '[.[]|select(.name|match("^telerising-v.+_x86-64_linux.zip$"))][0].download_url'); \
fi \
&& wget -qO- "${TELERISING_API_URL}" | busybox unzip -d / - \
&& wget -qO- "${TELERISING_API_URL}" | bsdtar -xvf - -C / \
&& mv /telerising /app \
&& chmod +x /app/api \
&& apk del build-dependencies
Expand Down

0 comments on commit 54ac2a9

Please sign in to comment.