diff --git a/SessionCompanion/Dockerfile b/SessionCompanion/Dockerfile new file mode 100644 index 0000000..d34dc0f --- /dev/null +++ b/SessionCompanion/Dockerfile @@ -0,0 +1,8 @@ +FROM mcr.microsoft.com/dotnet/sdk:5.0 + +ADD . /App +WORKDIR /App + +EXPOSE 5001 + +CMD 'dotnet' 'build' diff --git a/SessionCompanion/Jenkinsfile b/SessionCompanion/Jenkinsfile new file mode 100644 index 0000000..2e1c547 --- /dev/null +++ b/SessionCompanion/Jenkinsfile @@ -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) + } +}