Browse Source

modified dockerfile

xiaoct 7 years ago
parent
commit
5d7065c3ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -8,10 +8,10 @@ FROM ubuntu
 # File Author / Maintainer
 # MAINTAINER name Chunteng Xiao
 
+RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
 RUN apt-get update
-RUN apt-get install nodejs nginx -y
+RUN apt-get install -y nodejs nginx 
 RUN rm -v /etc/nginx/nginx.conf
-RUN curl http://npmjs.org/install.sh | sh
 ADD nginx.conf /etc/nginx
 EXPOSE 80
 CMD service nginx start