SES-79 #3

Merged
s426134 merged 10 commits from SES-79 into master 2020-12-02 20:39:22 +01:00
2 changed files with 28 additions and 0 deletions

21
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,21 @@
pipeline {
agent any
stages {
stage('Build image') {
steps {
echo "Building docker image"
script {
dir('SessionCompanion/SessionCompanion'){
def customImage = docker.build("session-companion:${env.BUILD_ID}")
//customImage.withRun('-p 5050:5050')
}
}
}
}
stage('Delete image') {
steps {
sh "docker rmi session-companion:${env.BUILD_ID}"
}
}
}
}

View File

@ -0,0 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0
ADD . /App
WORKDIR /App
EXPOSE 5001
CMD 'dotnet' 'build'