Skip to content

Commit b357caa

Browse files
committed
Get APP_VERSION is not supplied via ARG
1 parent 4968557 commit b357caa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ RUN \
2222
curl \
2323
python3 \
2424
py3-pip && \
25+
echo "**** install monit ****" && \
26+
if [ -z ${APP_VERSION+x} ]; then \
27+
APP_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
28+
&& awk '/^P:'"monit"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
29+
fi && \
2530
apk add -U --upgrade --no-cache \
2631
monit==${APP_VERSION} && \
2732
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine/ \

0 commit comments

Comments
 (0)