testing new aproach

This commit is contained in:
hllvc 2021-07-11 14:55:40 +02:00
parent edafd6e123
commit afc6ebb136
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,5 @@
FROM openjdk:8-jre-alpine FROM openjdk:8-jre-alpine
# WORKDIR /app # COPY target/app.jar .
# COPY /build/target/app.jar .
EXPOSE 8080 EXPOSE 8080
CMD [ "ls" ] CMD [ "ls" ]
# CMD [ "java", "-jar", "-Dspring.profiles.active=mysql" ,"app.jar" ] # CMD [ "java", "-jar", "-Dspring.profiles.active=mysql" ,"app.jar" ]

4
Jenkinsfile vendored
View file

@ -9,7 +9,7 @@ pipeline {
dockerfile { dockerfile {
filename 'Dockerfile.build' filename 'Dockerfile.build'
dir '.' dir '.'
args '-d -v $HOME/.m2:/root/.m2 -v /build:/root/build' args '-d -v $HOME/.m2:/root/.m2 -v .:/build'
} }
} }
steps { steps {
@ -21,7 +21,7 @@ pipeline {
agent { agent {
dockerfile { dockerfile {
filename 'Dockerfile.run' filename 'Dockerfile.run'
dir '.' dir '/build'
} }
} }
steps { steps {