diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..90edced --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:16.7.0-alpine AS builder + +WORKDIR /app + +COPY package*.json ./ + +RUN yarn + +COPY . . + +RUN yarn build + + +FROM nginx:1.21.1 + +COPY --from=builder /app/dist /usr/share/nginx/html \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..e1569fe --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +pipeline { + agent { + node { + label 'willa' + } + + } + stages { + stage('build') { + steps { + sh 'docker build -t registry.willaspace.com/willaspace/$IMAGE_NAME:latest .' + } + } + + stage('deploy') { + steps { + sh 'cd /apps/$IMAGE_NAME/; docker-compose up -d' + } + } + + } + environment { + IMAGE_NAME = 'champya-front' + } +} \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 167eb2e..943d0e0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,3 +1,4 @@ +const path = require('path'); module.exports = { transpileDependencies: [ 'vuetify'