From af37de555cf899c170619cef4bb7c65a54d95d33 Mon Sep 17 00:00:00 2001 From: TheSpad Date: Fri, 22 Apr 2022 15:30:20 +0100 Subject: [PATCH] Use APP_VERSION to allow passing as build ARG --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f059e82..3f7e612 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.15 as server-buildstage # set version label -ARG YOUR_SPOTIFY_RELEASE -LABEL build_version="Linuxserver.io version:- ${YOUR_SPOTIFY_RELEASE}" -LABEL maintainer="thespad" +ARG BUILD_DATE +ARG VERSION +ARG APP_VERSION RUN \ apk -U --update --no-cache add --virtual=server-build-dependencies \ @@ -18,13 +18,13 @@ RUN \ python3-dev \ yarn && \ echo "*** install your_spotify server ***" && \ - if [ -z ${YOUR_SPOTIFY_RELEASE+x} ]; then \ - YOUR_SPOTIFY_RELEASE=$(curl -sX GET "https://api.github.com/repos/Yooooomi/your_spotify/releases/latest" \ + if [ -z ${APP_VERSION+x} ]; then \ + APP_VERSION=$(curl -sX GET "https://api.github.com/repos/Yooooomi/your_spotify/releases/latest" \ | awk '/tag_name/{print $4;exit}' FS='[""]'); \ fi && \ curl -o \ /tmp/your_spotify.tar.gz -L \ - "https://github.com/Yooooomi/your_spotify/archive/${YOUR_SPOTIFY_RELEASE}.tar.gz" && \ + "https://github.com/Yooooomi/your_spotify/archive/${APP_VERSION}.tar.gz" && \ mkdir -p /app/your_spotify && \ tar xzf \ /tmp/your_spotify.tar.gz -C \