diff --git a/Dockerfile b/Dockerfile index 9bfde68..22f045b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,4 @@ FROM nginx:1.13.1-alpine EXPOSE 80 COPY dist /var/www -COPY config/nginx.conf /etc/nginx/nginx.conf +# COPY config/nginx.conf /etc/nginx/nginx.conf diff --git a/Jenkinsfile b/Jenkinsfile index ebbffea..a08df06 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,16 +17,22 @@ pipeline { // } // } - stage('Lint') { - steps { - sh 'npm run ng lint' - } - } +// stage('Lint') { +// steps { +// sh 'npm run ng lint' +// } +// } - stage('Build') { + stage('Build Angular') { steps { sh 'npm run ng build --prod --aot --sm --progress=false' } } + + stage('Build Dockerfile') { + steps { + sh 'docker build . -t schedulord-backend' + } + } } }