@@ -7,9 +7,12 @@
FROM ubuntu
# File Author / Maintainer
# MAINTAINER name Chunteng Xiao
+ADD deliver.sh /home
+ADD kill.sh /home
RUN apt-get update
RUN apt-get install -y nodejs nginx npm
RUN rm -v /etc/nginx/nginx.conf
+RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
ADD nginx.conf /etc/nginx
EXPOSE 80
CMD service nginx start
@@ -14,9 +14,9 @@ pipeline {
}
stage('Deliver'){
steps {
- sh './jenkins/scripts/deliver.sh'
+ sh 'deliver.sh'
input message: 'Finished using the web site? (Click "Proceed" to continue)'
- sh './jenkins/scripts/kill.sh'
+ sh 'kill.sh'