1
2
3
4
5
6
7
8
9
FROM alpine:3.13

RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories \
&& apk update && apk upgrade \
&& apk add nodejs npm && npm install -g yarn \
&& yarn config set registry http://registry.npm.taobao.org/ \
&& rm -rf /var/cache/apk/* && rm -rf /tmp/*

CMD ["node"]