mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
Update Dockerfile
Signed-off-by: prankumargrid <prankumar@griddynamics.com>
This commit is contained in:
parent
03ac881783
commit
8ce35bef8d
1 changed files with 6 additions and 7 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,9 +1,8 @@
|
||||||
FROM gradle:8.5-jdk17 as builder
|
FROM openjdk:17-jdk-slim
|
||||||
COPY . /app
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN gradle build -x test
|
COPY build/libs/*.jar app.jar
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
FROM eclipse-temurin:17-jre-alpine
|
|
||||||
WORKDIR/app
|
|
||||||
COPY --from=builder /app/build/libs/spring-petclinic-*.jar app.jar
|
|
||||||
ENTRYPOINT ["java", "-jar", "app.jar"]
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|
||||||
|
|
Loading…
Reference in a new issue