mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-14 08:19:36 +00:00
Add Dockerfile
Signed-off-by: Mihailo <mmarcetic@griddynamcis.com>
This commit is contained in:
parent
a2848f9132
commit
ba9fd2a991
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
FROM gradle:8.5-jdk17 AS build
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
RUN gradle clean build
|
||||||
|
|
||||||
|
FROM eclipse-temurin:17-jre
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --from=build /app/build/libs/*.jar app.jar
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|
Loading…
Reference in a new issue