configurated material and cdk #4
21
Jenkinsfile
vendored
Normal file
21
Jenkinsfile
vendored
Normal 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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
SessionCompanion/SessionCompanion/Dockerfile
Normal file
7
SessionCompanion/SessionCompanion/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0
|
||||
|
||||
ADD . /App
|
||||
WORKDIR /App
|
||||
|
||||
EXPOSE 5001
|
||||
CMD 'dotnet' 'build'
|
Loading…
Reference in New Issue
Block a user