Compare commits

..

2 Commits

Author SHA1 Message Date
10db37262c jenkins: add initial Jenkinsfile 2024-09-17 02:31:19 -05:00
ceeb1f552b docker: add initial Dockerfile 2024-09-17 02:30:55 -05:00
2 changed files with 35 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:14-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3466
CMD ["npm", "start"]

20
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,20 @@
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Build') {
steps {
script {
docker.build('test.trianta.dev:latest')
}
}
}
stage('Deploy') {
sh 'docker run -p 3466:3466 test.trianta.dev'
}
}
}