fix download
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,13 +1,17 @@
|
|||||||
|
# # # seanime
|
||||||
|
# # # docer deploy builds
|
||||||
|
#
|
||||||
|
# Oryginal Code:
|
||||||
|
# https://github.com/5rahim/seanime/releases/latest
|
||||||
|
#
|
||||||
ARG VERSION=latest
|
ARG VERSION=latest
|
||||||
|
|
||||||
FROM alpine:latest as downloader
|
FROM alpine:latest as downloader
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN apk add --no-cache curl tar
|
RUN apk add --no-cache curl tar bash wget
|
||||||
# Download latest release info and extract the version tag
|
RUN TAG=$(curl -s https://api.github.com/repos/5rahim/seanime/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') && \
|
||||||
RUN curl -s https://api.github.com/repos/5rahim/seanime/releases/${VERSION} \
|
wget -O seanime.tar.gz https://github.com/5rahim/seanime/archive/refs/tags/${TAG}.tar.gz && \
|
||||||
| grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' > /src/tag.txt
|
tar -xzvf seanime.tar.gz --strip-components=1
|
||||||
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
|
|
||||||
|
|
||||||
FROM node:18-alpine AS frontend-build
|
FROM node:18-alpine AS frontend-build
|
||||||
WORKDIR /app/seanime-web
|
WORKDIR /app/seanime-web
|
||||||
|
|||||||
BIN
v2.9.10.tar.gz
Normal file
BIN
v2.9.10.tar.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user