Skip to content

Commit e2775cd

Browse files
committed
chore(docker): Update node version and reduce npm verbosity
* Update to latest node 20.x minor version * Remove `--verbose` and enable `--no-audit` for npm install to reduce install time * These were left over from debugging ARM builds from Feb 2024
1 parent 816bec8 commit e2775cd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ghcr.io/linuxserver/baseimage-debian:bookworm AS base
22

33
ENV TZ=Etc/GMT
4-
ENV NODE_VERSION 20.11.1
4+
ENV NODE_VERSION=20.18.1
55

66
# borrowing openssl header removal trick from offical docker-node
77
# https://github.com/nodejs/docker-node/blob/main/18/bookworm-slim/Dockerfile#L8
@@ -75,8 +75,7 @@ COPY --chown=abc:abc patches ./patches
7575
# This FAILED for node < 20 when building arm64 but not amd64 (and alpine-based Dockerfile has no issues building arm64)
7676
# see https://github.com/FoxxMD/multi-scrobbler/issues/126
7777
RUN npm ci \
78-
--verbose \
79-
# --no-audit \
78+
--no-audit \
8079
&& chown -R root:root node_modules
8180

8281
COPY --chown=abc:abc . /app
@@ -103,7 +102,7 @@ ENV IS_DOCKER=true
103102
ARG APP_BUILD_VERSION
104103
ENV APP_VERSION=$APP_BUILD_VERSION
105104

106-
RUN npm ci --omit=dev \
105+
RUN npm ci --omit=dev --no-audit \
107106
&& npm cache clean --force \
108107
&& chown -R abc:abc node_modules \
109108
&& rm -rf /root/.cache

0 commit comments

Comments
 (0)