mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
20240620_092944
This commit is contained in:
parent
d8fcd11e67
commit
d4d75e66bb
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM gradle:4.7.0-jdk8-alpine AS build
|
||||
COPY --chown=gradle:gradle . /home/gradle/src
|
||||
WORKDIR /home/gradle/src
|
||||
RUN gradle build --no-daemon
|
||||
|
||||
FROM openjdk:8-jre-slim
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
COPY --from=build /home/gradle/src/build/libs/*.jar /app/spring-boot-application.jar
|
||||
|
||||
ENTRYPOINT ["java", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-Djava.security.egd=file:/dev/./urandom","-jar","/app/spring-boot-application.jar"]
|
Loading…
Reference in a new issue