Dockerfile 507 B

12345678910111213141516
  1. FROM daocloud.io/library/ubuntu:18.10
  2. LABEL Name=qhedu/nodejs Version=1.0.1
  3. RUN mkdir -p /root/app
  4. # ADD . /root/app
  5. WORKDIR /root/app
  6. RUN sed -i "s|http://archive.ubuntu.com|http://mirrors.aliyun.com|g" /etc/apt/sources.list && rm -Rf /var/lib/apt/lists/* && apt-get -y update
  7. RUN apt-get install -y nodejs
  8. RUN apt-get install -y npm
  9. RUN npm config set registry http://registry.npm.taobao.org
  10. RUN npm install -g create-react-app
  11. CMD ["/bin/bash" ,"-c" ,"while true;do echo hello docker;sleep 1;done"]