14 lines
275 B
Docker
14 lines
275 B
Docker
FROM gradle:jdk11 as build
|
|
|
|
COPY --chown=gradle:gradle . /home/gradle/src
|
|
|
|
WORKDIR /home/gradle/src
|
|
RUN gradle shadowJar --no-daemon
|
|
|
|
FROM openjdk:11-jre
|
|
|
|
COPY --from=build /home/gradle/src/build/libs/*.jar /app/app.jar
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["java","-jar","/app/app.jar"] |