mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
Update Dockerfile
This commit is contained in:
parent
42dee8a0f8
commit
c76f8205ef
1 changed files with 1 additions and 12 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,15 +1,4 @@
|
|||
FROM gradle:8-jdk-alpine AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN gradle clean build
|
||||
|
||||
FROM openjdk:17-jdk-slim
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/build/libs/*.jar /app/app.jar
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
COPY target/spring-petclinic-*.jar app.jar
|
||||
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
|
||||
|
|
Loading…
Reference in a new issue