node dependency fix in dockerfile

This commit is contained in:
buanet
2024-01-08 14:38:41 +01:00
parent 6538b3ff99
commit 16c741733f
2 changed files with 5 additions and 5 deletions

View File

@@ -45,8 +45,8 @@ RUN apt-get update && apt-get upgrade -y \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update && apt-get install -q -y --no-install-recommends nodejs \
# Install npm (does no longer come with nodejs?)
&& apt-get update && apt-get install -q -y --no-install-recommends npm \
# Check for and install npm if not installed (no longer comes with nodejs? Bug?)
&& npm --version || apt-get update && apt-get install -q -y --no-install-recommends npm \
# Install node-gyp
&& npm install --production -g node-gyp \
# Generating locales