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

RUN ./gradlew build

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" ]