Merge branch 'master' into SES-71

This commit is contained in:
Natalia Gawron 2020-12-02 21:04:19 +01:00
commit 2830b8541b
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'