2020-04-07 16:40:37 +02:00
|
|
|
FROM gradle:jdk11 AS build
|
|
|
|
WORKDIR /root
|
|
|
|
COPY . .
|
|
|
|
RUN ["gradle", "bootJar"]
|
|
|
|
|
|
|
|
FROM openjdk:11-jre-slim
|
|
|
|
WORKDIR /root
|
2020-05-28 19:57:05 +02:00
|
|
|
ENV TZ=Europe/Berlin
|
2020-04-07 16:40:37 +02:00
|
|
|
COPY --from=build /root/build/libs/*.jar app.jar
|
2020-05-09 17:57:33 +02:00
|
|
|
EXPOSE 5000
|
2020-04-07 16:40:37 +02:00
|
|
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|