2020-03-16 02:01:07 +01:00
|
|
|
FROM gradle:jdk11 AS build
|
|
|
|
WORKDIR /root
|
|
|
|
COPY . .
|
|
|
|
RUN ["gradle", "bootJar"]
|
|
|
|
|
|
|
|
FROM openjdk:13-jdk-alpine
|
|
|
|
WORKDIR /root
|
|
|
|
COPY --from=build /root/build/libs/*.jar app.jar
|
|
|
|
EXPOSE 80
|
2020-03-16 03:04:40 +01:00
|
|
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|