FROM centos:7
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node \
&& curl --silent --location https://rpm.nodesource.com/setup_12.x | bash - \
&& yum -y install nodejs \
&& npm install -g cnpm --registry=https://registry.npm.taobao.org \
&& cnpm install -g yarn
CMD [ "node" ]
关注微信公众号【我的小碗汤】,微信扫下方码关注,精彩内容第一时间送达:

Content type
Image
Digest
Size
170.6 MB
Last updated
almost 5 years ago
docker pull smallsoup/node:12-centos7