docker: migrate to new nodesource repo; node 19 -> 20
old node setup script had a warning to migrate with 60s pause during docker build https://github.com/nodesource/distributions/wiki/How-to-migrate-to-the-new-repository
This commit is contained in:
parent
97882c76c3
commit
c79f4cc40f
1 changed files with 8 additions and 2 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -10,8 +10,11 @@ ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Install up-to-date node & npm, deps for virtual screen & noVNC, firefox, pip for apprise.
|
# Install up-to-date node & npm, deps for virtual screen & noVNC, firefox, pip for apprise.
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --no-install-recommends -y curl ca-certificates \
|
&& apt-get install --no-install-recommends -y curl ca-certificates gnupg \
|
||||||
&& curl -fsSL https://deb.nodesource.com/setup_19.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_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
|
||||||
|
&& apt-get update \
|
||||||
&& apt-get install --no-install-recommends -y \
|
&& apt-get install --no-install-recommends -y \
|
||||||
nodejs \
|
nodejs \
|
||||||
xvfb \
|
xvfb \
|
||||||
|
|
@ -42,6 +45,9 @@ RUN apt-get update \
|
||||||
/var/lib/apt/lists/* \
|
/var/lib/apt/lists/* \
|
||||||
/var/tmp/*
|
/var/tmp/*
|
||||||
|
|
||||||
|
# RUN node --version
|
||||||
|
# RUN npm --version
|
||||||
|
|
||||||
RUN ln -s /usr/share/novnc/vnc_auto.html /usr/share/novnc/index.html
|
RUN ln -s /usr/share/novnc/vnc_auto.html /usr/share/novnc/index.html
|
||||||
RUN pip install apprise
|
RUN pip install apprise
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue