From 04ec33f94a709bbaac4a38f1d26b726503224d89 Mon Sep 17 00:00:00 2001 From: TheSpad Date: Fri, 22 Apr 2022 15:27:21 +0100 Subject: [PATCH] Use APP_VERSION to allow passing as build ARG --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 50fd228..d745e29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.15 ARG BUILD_DATE ARG VERSION -ARG PTS_VERSION +ARG APP_VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL maintainer="aptalca" @@ -20,12 +20,12 @@ RUN \ jq \ py3-pip && \ echo "**** install plextraktsync ****" && \ - if [ -z "${PTS_VERSION}" ]; then \ - PTS_VERSION=$(curl -sL "https://pypi.python.org/pypi/PlexTraktSync/json" | jq -r '. | .info.version'); \ + if [ -z "${APP_VERSION}" ]; then \ + APP_VERSION=$(curl -sL "https://pypi.python.org/pypi/PlexTraktSync/json" | jq -r '. | .info.version'); \ fi && \ pip3 install --no-cache-dir -U pip && \ pip install --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ \ - PlexTraktSync==${PTS_VERSION} && \ + PlexTraktSync==${APP_VERSION} && \ echo "**** clean up ****" && \ rm -rf \ /tmp/* \