Compare commits
2 Commits
8e626448a2
...
10db37262c
Author | SHA1 | Date | |
---|---|---|---|
10db37262c | |||
ceeb1f552b |
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
20
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user