更改CloudCenter制作镜像的软件源顺序到末尾
continuous-integration/drone/push Build is passing Details

main
lzwang 2022-09-21 19:04:43 +08:00
parent ef3c490859
commit 5748a99797
1 changed files with 8 additions and 8 deletions

View File

@ -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"]