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

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