another try

This commit is contained in:
hllvc 2021-07-11 15:30:00 +02:00
parent c1acf0edb2
commit 03b87d2b33
2 changed files with 5 additions and 1 deletions

View file

@ -2,4 +2,8 @@ FROM openjdk:8-jre-alpine
WORKDIR /app
COPY /build/target/app.jar .
EXPOSE 8080
RUN ls -a
RUN ls /app
RUN ls $HOME
RUN ls /build
CMD [ "java", "-jar", "-Dspring.profiles.active=mysql" ,"app.jar" ]

2
Jenkinsfile vendored
View file

@ -9,7 +9,7 @@ pipeline {
dockerfile {
filename 'Dockerfile.build'
dir '.'
args '-v $HOME/.m2:/.m2 -v ${WORKSPACE}/build:/build'
args '-v $HOME/.m2:/.m2 -v $PWD/build:/build'
}
}
steps {