Skip to content

Commit

Permalink
Get APP_VERSION is not supplied via ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Oct 20, 2021
1 parent 4968557 commit b357caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ RUN \
curl \
python3 \
py3-pip && \
echo "**** install monit ****" && \
if [ -z ${APP_VERSION+x} ]; then \
APP_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:'"monit"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
fi && \
apk add -U --upgrade --no-cache \
monit==${APP_VERSION} && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine/ \
Expand Down

0 comments on commit b357caa

Please sign in to comment.