Browse Source

添加 '8/Dockerfile'

main
李玉 2 years ago
parent
commit
58ca77bbcd
  1. 12
      8/Dockerfile

12
8/Dockerfile

@ -0,0 +1,12 @@
FROM node:8-alpine
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
Loading…
Cancel
Save