This commit is contained in:
buanet
2024-01-08 15:59:37 +01:00
parent 16c741733f
commit b9618d92d2

View File

@@ -46,7 +46,7 @@ RUN apt-get update && apt-get upgrade -y \
&& 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 \ && 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 \ && apt-get update && apt-get install -q -y --no-install-recommends nodejs \
# Check for and install npm if not installed (no longer comes with nodejs? Bug?) # 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 \ && npm --version || apt-get install -q -y --no-install-recommends npm \
# Install node-gyp # Install node-gyp
&& npm install --production -g node-gyp \ && npm install --production -g node-gyp \
# Generating locales # Generating locales