|
@@ -7,9 +7,12 @@
|
|
|
FROM ubuntu
|
|
FROM ubuntu
|
|
|
# File Author / Maintainer
|
|
# File Author / Maintainer
|
|
|
# MAINTAINER name Chunteng Xiao
|
|
# MAINTAINER name Chunteng Xiao
|
|
|
|
|
+ADD deliver.sh /home
|
|
|
|
|
+ADD kill.sh /home
|
|
|
RUN apt-get update
|
|
RUN apt-get update
|
|
|
RUN apt-get install -y nodejs nginx npm
|
|
RUN apt-get install -y nodejs nginx npm
|
|
|
RUN rm -v /etc/nginx/nginx.conf
|
|
RUN rm -v /etc/nginx/nginx.conf
|
|
|
|
|
+RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
|
|
|
ADD nginx.conf /etc/nginx
|
|
ADD nginx.conf /etc/nginx
|
|
|
EXPOSE 80
|
|
EXPOSE 80
|
|
|
CMD service nginx start
|
|
CMD service nginx start
|