diff --git a/16/Dockerfile b/16/Dockerfile index ebdc358..115fa57 100644 --- a/16/Dockerfile +++ b/16/Dockerfile @@ -1,14 +1,16 @@ FROM repository.anxinyun.cn/devops/alpine:3-tz-hw - -ENV NODE_VERSION 16.14.2 + +ENV NODE_VERSION 16.14.2-r0 RUN addgroup -g 1000 node; \ adduser -u 1000 -G node -s /bin/sh -D node; \ - apk add --no-cache nodejs==${NODE_VERSION}-r0 npm yarn; \ + apk add --no-cache nodejs==${NODE_VERSION} npm yarn; \ node --version; \ npm --version; \ yarn --version; \ - npm config set registry https://registry.npm.taobao.org + npm config set registry https://registry.npm.taobao.org; \ + cp /root/.npmrc /home/node/ ; \ + chown node:node /home/node/.npmrc COPY docker-entrypoint.sh /usr/local/bin/ @@ -16,4 +18,4 @@ USER node ENTRYPOINT ["docker-entrypoint.sh"] -CMD [ "node" ] +CMD [ "node" ] \ No newline at end of file