mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-23 21:25:33 +02:00
update node setup in dockerfile
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
## Changelog
|
||||
|
||||
### v9.0.0-beta.1 (coming soon)
|
||||
* updating base image to debian 12 (bookworm)
|
||||
* update nodejs setup process
|
||||
* update base image to debian 12 (bookworm)
|
||||
* improve security by avoiding running commands as root
|
||||
* integrate calling maintenance script into iobroker command
|
||||
* move container config files location
|
||||
|
||||
@@ -21,8 +21,10 @@ RUN apt-get update && apt-get upgrade -y \
|
||||
# Install prerequisites
|
||||
&& apt-get install -y \
|
||||
apt-utils \
|
||||
ca-certificates \
|
||||
cifs-utils \
|
||||
curl \
|
||||
gnupg \
|
||||
gosu \
|
||||
iputils-ping \
|
||||
jq \
|
||||
@@ -36,7 +38,9 @@ RUN apt-get update && apt-get upgrade -y \
|
||||
udev \
|
||||
wget \
|
||||
# Install node
|
||||
&& curl -sL https://deb.nodesource.com/setup_${NODE}.x | bash - \
|
||||
&& 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 \
|
||||
&& apt-get update && apt-get install -y nodejs \
|
||||
# Install node-gyp
|
||||
&& npm install --production -g node-gyp \
|
||||
|
||||
Reference in New Issue
Block a user