From c8841c8e1436cce768fd2a9d6a8712be5648522e Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Thu, 9 Jun 2022 15:01:40 +0200 Subject: [PATCH] changed dockerfiles --- Dockerfile | 2 +- Jenkinsfile | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) 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' + } + } } }