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
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user