fix: try to update node repo script
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
aa17fc97ad
commit
64e346169d
1 changed files with 9 additions and 4 deletions
|
@ -8,6 +8,8 @@ RUN set -ex; \
|
|||
apt-get -y --no-install-recommends install \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl
|
||||
gnupg
|
||||
wget \
|
||||
pkg-config \
|
||||
xvfb \
|
||||
|
@ -28,11 +30,14 @@ RUN set -ex; \
|
|||
libpixman-1-0; \
|
||||
apt-get -y --purge autoremove; \
|
||||
apt-get clean; \
|
||||
rm -rf /var/lib/apt/lists/*;
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
sudo mkdir -p /etc/apt/keyrings; \
|
||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg;
|
||||
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
RUN wget -qO- https://deb.nodesource.com/setup_18.x | bash; \
|
||||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list; \
|
||||
apt-get -qq update; \
|
||||
apt-get install -y nodejs; \
|
||||
npm i -g npm@latest; \
|
||||
apt-get -y remove wget; \
|
||||
|
|
Loading…
Reference in a new issue