Skip to content

Commit

Permalink
Only install NodeJS for openHAB 5 SNAPSHOTs
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Jan 7, 2025
1 parent d465fe1 commit 3baf5ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ LABEL org.opencontainers.image.created=$BUILD_DATE \
# https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]


# Install basepackages. Versions are "pinned" by using a pinned base image.
# hadolint ignore=DL3018
RUN apk update --no-cache && \

Check failure on line 45 in alpine/Dockerfile

View workflow job for this annotation

GitHub Actions / latest-alpine

SC2086 info: Double quote to prevent globbing and word splitting.

Check failure on line 45 in alpine/Dockerfile

View workflow job for this annotation

GitHub Actions / snapshot-alpine

SC2086 info: Double quote to prevent globbing and word splitting.
Expand All @@ -57,10 +58,11 @@ RUN apk update --no-cache && \
tini \
ttf-dejavu \
openjdk${JAVA_VERSION} \
nodejs \
unzip \
wget \
zip && \
# Install NodeJS only for openHAB 5 SNAPSHOT
if [ $(echo $version | grep -E '^5\..+-SNAPSHOT$') ]; then apk add --no-cache nodejs; fi && \
chmod u+s /usr/sbin/arping && \
rm -rf /var/cache/apk/*

Expand Down

0 comments on commit 3baf5ab

Please sign in to comment.