mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:15:49 +00:00
another try
This commit is contained in:
parent
68afd4ff07
commit
f14cf3a006
2 changed files with 5 additions and 8 deletions
|
@ -1,9 +1,5 @@
|
|||
FROM openjdk:8-jre-alpine
|
||||
# WORKDIR /app
|
||||
# COPY /build/target/app.jar .
|
||||
VOLUME [ "/app" ]
|
||||
WORKDIR /app/target
|
||||
EXPOSE 8080
|
||||
RUN ls -a
|
||||
# RUN ls /app
|
||||
RUN ls $HOME
|
||||
RUN ls /build
|
||||
# CMD [ "java", "-jar", "-Dspring.profiles.active=mysql" ,"app.jar" ]
|
||||
CMD [ "java", "-jar", "-Dspring.profiles.active=mysql" ,"app.jar" ]
|
||||
|
|
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -9,7 +9,7 @@ pipeline {
|
|||
dockerfile {
|
||||
filename 'Dockerfile.build'
|
||||
dir '.'
|
||||
args '-v $HOME/.m2:/.m2 -v $PWD/build:/build'
|
||||
args '-v $HOME/.m2:/.m2 -v /tmp/petclinic_build:/build'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
|
@ -22,6 +22,7 @@ pipeline {
|
|||
dockerfile {
|
||||
filename 'Dockerfile.run'
|
||||
dir '.'
|
||||
args '-v /tmp/petclinic_build:/app'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
|
|
Loading…
Reference in a new issue