diff --git a/Dockerfile b/Dockerfile index e98e3f9..6117eb6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,17 @@ +# # # seanime +# # # docer deploy builds +# +# Oryginal Code: +# https://github.com/5rahim/seanime/releases/latest +# ARG VERSION=latest + FROM alpine:latest as downloader WORKDIR /src -RUN apk add --no-cache curl tar -# Download latest release info and extract the version tag -RUN curl -s https://api.github.com/repos/5rahim/seanime/releases/${VERSION} \ - | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' > /src/tag.txt -RUN TAG=$(cat /src/tag.txt) && \ - curl -L https://github.com/5rahim/seanime/archive/refs/tags/${TAG}.tar.gz -o seanime.tar.gz && \ - tar -xzvf seanime.tar.gz +RUN apk add --no-cache curl tar bash wget +RUN TAG=$(curl -s https://api.github.com/repos/5rahim/seanime/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') && \ + wget -O seanime.tar.gz https://github.com/5rahim/seanime/archive/refs/tags/${TAG}.tar.gz && \ + tar -xzvf seanime.tar.gz --strip-components=1 FROM node:18-alpine AS frontend-build WORKDIR /app/seanime-web diff --git a/tag.file b/tag.file new file mode 100644 index 0000000..dd54728 --- /dev/null +++ b/tag.file @@ -0,0 +1 @@ +v2.9.10 diff --git a/v2.9.10.tar.gz b/v2.9.10.tar.gz new file mode 100644 index 0000000..75c0b12 Binary files /dev/null and b/v2.9.10.tar.gz differ