|
|
@@ -9,7 +9,6 @@ FROM ubuntu
|
|
|
# MAINTAINER name Chunteng Xiao
|
|
|
RUN apt-get update
|
|
|
RUN apt-get install -y nodejs nginx npm
|
|
|
-RUN rm -v /etc/nginx/nginx.conf
|
|
|
-ADD nginx.conf /etc/nginx
|
|
|
-EXPOSE 80
|
|
|
-CMD service nginx start
|
|
|
+RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
|
|
|
+ADD default /etc/nginx/sites-available
|
|
|
+EXPOSE 80
|