SES-79 #3
8
SessionCompanion/Dockerfile
Normal file
8
SessionCompanion/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
|
|
||||||
|
ADD . /App
|
||||||
|
WORKDIR /App
|
||||||
|
|
||||||
|
EXPOSE 5001
|
||||||
|
|
||||||
|
CMD 'dotnet' 'build'
|
11
SessionCompanion/Jenkinsfile
vendored
Normal file
11
SessionCompanion/Jenkinsfile
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
pipeline {
|
||||||
|
def app
|
||||||
|
|
||||||
|
stage('Build image') {
|
||||||
|
checkout scm
|
||||||
|
app = docker.build("session-companion:${env.BUILD_ID}")
|
||||||
|
}
|
||||||
|
stage('Build app') {
|
||||||
|
docker.image("session-companion:${env.BUILD_ID}").withRun(-p 8080:8080)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user