凌文龙
3 years ago
1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||
|
FROM node:14-alpine |
||||
|
|
||||
|
LABEL maintainer="Loong<ling.wenlong@free-sun.com.cn>" |
||||
|
|
||||
|
# 更换软件源 |
||||
|
RUN cp -a /etc/apk/repositories /etc/apk/repositories.bak \ |
||||
|
&& sed -i "s@http://dl-cdn.alpinelinux.org/@https://mirrors.huaweicloud.com/@g" /etc/apk/repositories \ |
||||
|
&& apk update \ |
||||
|
&& apk add tzdata \ |
||||
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ |
||||
|
&& echo "Asia/Shanghai" > /etc/timezone \ |
||||
|
&& apk del tzdata |
||||
|
&& npm config set registry=http://10.8.30.22:7000 |
||||
|
|
Reference in new issue