SES-79 Try configs for Dockerfile and Jenkinsfile

This commit is contained in:
Karol Górzyński 2020-12-02 18:52:16 +01:00
parent 973a1e3bab
commit f3c55bf7e3
2 changed files with 19 additions and 0 deletions

View 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
View 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)
}
}