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