mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
running application on different port
This commit is contained in:
parent
fea262e763
commit
8217d69908
1 changed files with 5 additions and 4 deletions
|
@ -3,14 +3,15 @@ WORKDIR /app
|
|||
|
||||
COPY pom.xml ./
|
||||
RUN mvn dependency:go-offline
|
||||
RUN mvn spring-javaformat:help
|
||||
|
||||
COPY . ./
|
||||
RUN mvn spring-javaformat:apply
|
||||
RUN mvn package
|
||||
RUN echo "START: Running Tests"
|
||||
RUN ./mvnw test
|
||||
RUN echo "END: Tests completed "
|
||||
RUN ./mvnw package
|
||||
|
||||
FROM openjdk:8-jre-alpine
|
||||
EXPOSE 8080
|
||||
EXPOSE 9449
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /app/target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar ./spring-petclinic.jar
|
||||
|
|
Loading…
Reference in a new issue