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

RUN ./gradlew assemble

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