mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 10:57:28 +00:00
Create Dockerfile
Signed-off-by: bhavanab2312 <bhavanab2312@gmail.com>
This commit is contained in:
parent
fd4361b118
commit
46a93f8c07
1 changed files with 9 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FROM maven:3.9.9-eclipse-temurin-21 AS builder
|
||||
WORKDIR /sujith
|
||||
RUN git clone https://github.com/spring-projects/spring-petclinic.git
|
||||
RUN cd /sujith/spring-petclinic && mvn clean package -DskipTests
|
||||
|
||||
FROM eclipse-temurin:21-jdk
|
||||
COPY --from=builder /sujith/spring-petclinic/target/*.jar /sujith/app.jar
|
||||
EXPOSE 8080
|
||||
CMD ["java", "-jar", "/sujith/app.jar"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue