mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
Added Dockerfile
This commit is contained in:
parent
923e2b7aa3
commit
8cda8a5f6f
1 changed files with 10 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM maven:3.9-amazoncorretto-21-al2023 AS build
|
||||
WORKDIR /usr/app
|
||||
COPY . /usr/app
|
||||
RUN mvn -DskipTests install
|
||||
|
||||
FROM openjdk:22-oraclelinux8
|
||||
|
||||
COPY --from=build /usr/app/target/spring-petclinic-3.1.0-SNAPSHOT.jar /
|
||||
EXPOSE 8080
|
||||
CMD ["java", "-jar", "spring-petclinic-3.1.0-SNAPSHOT.jar"]
|
Loading…
Reference in a new issue