mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
moving stuff to app dir
This commit is contained in:
parent
75c055145e
commit
56b252042e
1 changed files with 7 additions and 2 deletions
|
@ -1,12 +1,17 @@
|
|||
FROM maven:3.6.3-jdk-8 AS build-env
|
||||
WORKDIR /app
|
||||
|
||||
COPY pom.xml ./
|
||||
RUN mvn dependency:go-offline
|
||||
RUN mvn spring-javaformat:help
|
||||
|
||||
COPY . ./
|
||||
|
||||
RUN mvn dependency:go-offline
|
||||
RUN mvn spring-javaformat:apply
|
||||
RUN mvn package
|
||||
|
||||
FROM openjdk:8-jre-alpine
|
||||
EXPOSE 8080
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar ./spring-petclinic.jar
|
||||
CMD ["java", "-jar", "/spring-petclinic.jar"]
|
||||
|
|
Loading…
Reference in a new issue