Dockerfile 624 B

123456789101112131415161718192021222324
  1. FROM daocloud.io/library/ubuntu:18.10
  2. LABEL Name=cordova-docs Version=1.0.1
  3. WORKDIR /root/app
  4. ADD . /root/app
  5. 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
  6. RUN apt-get install -y ruby-full
  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 apt-get install -y python2.7
  11. RUN gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
  12. RUN gem install bundler
  13. RUN bundle install --path ./ruby_modules
  14. RUN npm install
  15. CMD ["/bin/bash"]