mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
Edit Dockerfile
This commit is contained in:
parent
b114d12c33
commit
86d9202254
1 changed files with 3 additions and 11 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,17 +1,9 @@
|
|||
FROM maven:3.9.9-eclipse-temurin-17 AS builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN ./mvnw package -DskipTests
|
||||
|
||||
FROM eclipse-temurin:21-jdk-jammy
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder build/target/spring-petclinic-4.0.1.jar /app/spring-petclinic.jar
|
||||
COPY target/*.jar spring-petclinic.jar
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "/app/spring-petclinic.jar"]
|
||||
ENTRYPOINT ["java", "-jar", "spring-petclinic.jar"]
|
||||
|
||||
EXPOSE 8080
|
||||
EXPOSE 8080
|
||||
|
|
Loading…
Reference in a new issue