mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2026-01-23 07:31:36 +02:00
node dependency fix in dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user