Skip to content

Commit

Permalink
test npm9
Browse files Browse the repository at this point in the history
  • Loading branch information
buanet committed May 22, 2024
1 parent b289509 commit e55cc5f
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions debian12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ RUN apt-get update && apt-get upgrade -y \
udev \
wget \
# Install node
#&& mkdir -p /etc/apt/keyrings \
#&& 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 \
#&& printf "Package: *\nPin: origin deb.nodesource.com\nPin-Priority: 1001\n" > /etc/apt/preferences.d/nodesource \
#&& apt-get update && apt-get install -q -y --no-install-recommends nodejs \
&& mkdir -p /etc/apt/keyrings \
&& 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 \
&& printf "Package: *\nPin: origin deb.nodesource.com\nPin-Priority: 1001\n" > /etc/apt/preferences.d/nodesource \
&& apt-get update && apt-get install -q -y --no-install-recommends nodejs \
# Temp Fix (check/log npm version, update npm to latest)
#&& npm -v \
#&& npm install -g npm@latest \
#&& npm -v \
&& npm -v \
&& npm install -g npm@9 \
&& npm -v \
# Install node-gyp
#&& npm install --production -g node-gyp \
&& npm install --production -g node-gyp \
# Generating locales
&& sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen \
&& sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen \
Expand All @@ -63,12 +63,7 @@ RUN apt-get update && apt-get upgrade -y \
&& mkdir /opt/scripts/.docker_config \
&& echo "${VERSION}" > /opt/scripts/.docker_config/.thisisdocker \
# Run iobroker installer
#&& curl -sL https://iobroker.net/install.sh | bash - \
# Temp Testing
&& curl -sL https://iobroker.net/install.sh -o install.sh \
&& sed -i 's/NODE_MAJOR=[0-9]\+/NODE_MAJOR=${NODE}/' install.sh \
&& sed -i 's|NODE_JS_BREW_URL=.*|NODE_JS_BREW_URL="https://nodejs.org"|' install.sh \
&& bash install.sh \
&& curl -sL https://iobroker.net/install.sh | bash - \
# Deleting UUID from build
&& iobroker unsetup -y \
&& echo "true" > /opt/iobroker/.fresh_install \
Expand Down

0 comments on commit e55cc5f

Please sign in to comment.