Merge pull request 'SES-79' (#3) from SES-79 into master

Reviewed-on: #3
This commit is contained in:
Łukasz Góreczny 2020-12-02 20:39:21 +01:00
commit f9cc6273fb
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'