From 5748a9979713a84a6b8df4142cd360f5bda3a1ff Mon Sep 17 00:00:00 2001 From: lzwang Date: Wed, 21 Sep 2022 19:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9CloudCenter=E5=88=B6=E4=BD=9C?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E7=9A=84=E8=BD=AF=E4=BB=B6=E6=BA=90=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E5=88=B0=E6=9C=AB=E5=B0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud-center/Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cloud-center/Dockerfile b/cloud-center/Dockerfile index 4e2751b..7020f9a 100644 --- a/cloud-center/Dockerfile +++ b/cloud-center/Dockerfile @@ -24,11 +24,6 @@ RUN DEBIAN_FRONTEND=noninteractive \ && apt-get install -y nodejs \ && rm -rf /var/lib/apt/lists/* -# setup nodejs -RUN npm install -g cnpm --registry=https://registry.npm.taobao.org \ - && echo "alias npm=cnpm" >> /root/.bashrc \ - && npm config set registry https://registry.npm.taobao.org - # copy gitsh script COPY ./cloud-center/gitsh /project/tools/gitsh RUN chmod +x /project/tools/gitsh @@ -48,9 +43,6 @@ RUN apt-get update -y && apt-get upgrade -y \ && apt-get install vim pngquant -y \ && rm -rf /var/lib/apt/lists/* -# setup alias -RUN echo "alias ll='ls -la'" >> /root/.bashrc - # setup timezone RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && date @@ -66,5 +58,13 @@ RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib # https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple +# setup mirrors of nodejs +RUN npm install -g cnpm \ + && npm config set registry https://registry.npm.taobao.org + +# setup alias +RUN echo "alias ll='ls -la'" >> /root/.bashrc \ + && echo "alias npm=cnpm" >> /root/.bashrc + # on start up CMD ["python3"]