generated from container/tmpl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
438 B
14 lines
438 B
2 years ago
|
FROM node:14-alpine3.15
|
||
|
|
||
|
RUN set -eu; \
|
||
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories; \
|
||
|
apk add --no-cache tzdata \
|
||
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
||
|
&& apk del tzdata; \
|
||
|
npm config set registry https://registry.npm.taobao.org; \
|
||
|
cp /root/.npmrc /home/node; \
|
||
|
chown node:node /home/node/.npmrc
|
||
|
|
||
|
USER node
|