我曾经在基于Debian的容器上使用Dockerfile中的以下内容安装NodeJS:
RUN apt-get update -yq && apt-get upgrade -yq && apt-get install -yq curl git nano
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install nodejs -y
但我最近开始收到以下信息:
=> [base 3/7] RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
SCRIPT DEPRECATION WARNING
================================================================================
TO AVOID THIS WAIT MIGRATE THE SCRIPT Continuing in 60 seconds (press Ctrl-C to abort) ...
我该怎么修好它?如何正确安装NodeJS?