blob: 05c5377916c2f62b334d4f9882d61e914ffe4b0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
FROM eclipse-temurin:17 as builder
COPY . ./history
WORKDIR /history
RUN ./gradlew assemble
FROM eclipse-temurin:17-jre-alpine
USER nobody
ARG JAR_FILE=/history/app/build/libs/app.jar
COPY --from=builder ${JAR_FILE} app.jar
EXPOSE 9080
ENTRYPOINT [ "java","-jar","app.jar" ]
|