mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Create Dockerfile
This commit is contained in:
parent
2e5b33328a
commit
9fecaa89e1
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM maven:3.9.6-eclipse-temurin-21-alpine AS build
|
||||
|
||||
COPY . /app/spring-petclinic/
|
||||
WORKDIR /app/spring-petclinic/
|
||||
|
||||
RUN mvn clean package
|
||||
|
||||
FROM openjdk:23-jdk-slim
|
||||
|
||||
COPY --from=build /app/spring-petclinic/target/*.jar /app/spring-petclinic.jar
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "spring-petclinic.jar"]
|
Loading…
Reference in a new issue