aboutsummaryrefslogblamecommitdiffstats
path: root/Dockerfile
blob: a421feb68de9ed51eca10c2f60983d452f5c8a21 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                 
FROM gradle:7.3.3-jdk11-alpine AS builder
WORKDIR /home/springapp
COPY --chown=gradle:gradle ./gradlew /home/springapp/
COPY --chown=gradle:gradle ./settings.gradle.kts /home/springapp/
COPY --chown=gradle:gradle ./build.gradle.kts /home/springapp/
RUN gradle wrapper --no-daemon
COPY --chown=gradle:gradle ./src /home/springapp/src
RUN gradle bootJar --no-daemon

FROM eclipse-temurin:11-jre-alpine
WORKDIR /springapp
COPY --from=builder /home/springapp/build/libs/src.jar ./src.jar
ENTRYPOINT ["java", "-jar", "/springapp/src.jar"]