Skip to content

Commit

Permalink
Use APP_VERSION to allow passing as build ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Apr 22, 2022
1 parent c9762de commit 04ec33f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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/* \
Expand Down

0 comments on commit 04ec33f

Please sign in to comment.