aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 963540b3a4892bda446fec9ab026b00b0a8cbe89 (plain)
1
2
3
4
5
6
7
8
9
10
FROM eclipse-temurin:17 as builder
COPY . ./history
WORKDIR /history
RUN ./gradlew assemble

FROM eclipse-temurin:17-jre-alpine
ARG JAR_FILE=/history/app/build/libs/app.jar
COPY --from=builder ${JAR_FILE} app.jar
EXPOSE 9080
ENTRYPOINT [ "java","-jar","app.jar" ]