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.
19 lines
447 B
19 lines
447 B
FROM repository.anxinyun.cn/devops/alpine:3-tz-hw
|
|
|
|
ENV NODE_VERSION 16.14.2
|
|
|
|
RUN addgroup -g 1000 node \
|
|
&& adduser -u 1000 -G node -s /bin/sh -D node \
|
|
&& apk add --no-cache nodejs==16.14.2-r0 npm yarn \
|
|
&& node --version \
|
|
&& npm --version \
|
|
&& yarn --version \
|
|
&& npm config set registry https://registry.npm.taobao.org
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
|
|
USER node
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
|
|
CMD [ "node" ]
|
|
|