From c7e95b6c6996c5996e813e377aa255ea9c7c4946 Mon Sep 17 00:00:00 2001 From: Andy Duong Date: Mon, 3 Jul 2023 13:51:20 +0700 Subject: [PATCH] [#383] Pin the deb.nodesource.com instead of deb.debian.org for the nodejs --- .template/addons/docker/Dockerfile.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.template/addons/docker/Dockerfile.tt b/.template/addons/docker/Dockerfile.tt index 22bb1f9e..cee943e9 100644 --- a/.template/addons/docker/Dockerfile.tt +++ b/.template/addons/docker/Dockerfile.tt @@ -38,7 +38,8 @@ RUN apt-get update -qq && \ ADD https://dl.yarnpkg.com/debian/pubkey.gpg /tmp/yarn-pubkey.gpg RUN apt-key add /tmp/yarn-pubkey.gpg && rm /tmp/yarn-pubkey.gpg && \ echo "deb http://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \ - curl -sL https://deb.nodesource.com/setup_"$NODE_SOURCE_VERSION".x | bash - && \ + echo 'Package: nodejs\nPin: origin deb.nodesource.com\nPin-Priority: 600' > /etc/apt/preferences.d/nodesource && \ + curl -fsSL https://deb.nodesource.com/setup_"$NODE_SOURCE_VERSION".x | bash - && \ apt-get update -qq && \ apt-get install -y --no-install-recommends nodejs yarn && \ apt-get clean && \