another try

This commit is contained in:
hllvc 2021-07-11 15:36:16 +02:00
parent 68afd4ff07
commit f14cf3a006
2 changed files with 5 additions and 8 deletions

View file

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

3
Jenkinsfile vendored
View file

@ -9,7 +9,7 @@ pipeline {
dockerfile { dockerfile {
filename 'Dockerfile.build' filename 'Dockerfile.build'
dir '.' dir '.'
args '-v $HOME/.m2:/.m2 -v $PWD/build:/build' args '-v $HOME/.m2:/.m2 -v /tmp/petclinic_build:/build'
} }
} }
steps { steps {
@ -22,6 +22,7 @@ pipeline {
dockerfile { dockerfile {
filename 'Dockerfile.run' filename 'Dockerfile.run'
dir '.' dir '.'
args '-v /tmp/petclinic_build:/app'
} }
} }
steps { steps {