File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
kotlin-web-spring-boot-3/docker Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11# FROM eclipse-temurin:17-jre-alpine AS builder
22# Should move to use Ubuntu for production environment
33# Refer: https://www.dotcms.com/blog/post/moving-to-ubuntu-for-our-docker-image
4- FROM eclipse-temurin:21.0.2_13 -jre-alpine AS builder
4+ FROM eclipse-temurin:21.0.4_7 -jre-alpine AS builder
55ARG JAR_FILE=../build/libs/*.jar
66WORKDIR /workspace/
77COPY $JAR_FILE ./app.jar
88RUN java -Djarmode=layertools -jar ./app.jar extract
99
10- FROM eclipse-temurin:21.0.2_13 -jre-alpine
10+ FROM eclipse-temurin:21.0.4_7 -jre-alpine
1111RUN addgroup webappgroup; adduser --ingroup webappgroup --disabled-password webapp
1212USER webapp
1313WORKDIR /workspace/
Original file line number Diff line number Diff line change 1- FROM eclipse-temurin:21.0.2_13 -jdk-alpine AS builder
1+ FROM eclipse-temurin:21.0.4_7 -jdk-alpine AS builder
22ARG JAR_FILE=../build/libs/*.jar
33WORKDIR /workspace/
44RUN $JAVA_HOME/bin/jlink --add-modules java.se,jdk.jdwp.agent --strip-debug --no-man-pages --no-header-files --compress=2 --output ./jre/
Original file line number Diff line number Diff line change 11# FROM eclipse-temurin:17-jre-alpine AS builder
22# Should move to use Ubuntu for production environment
33# Refer: https://www.dotcms.com/blog/post/moving-to-ubuntu-for-our-docker-image
4- FROM eclipse-temurin:21.0.2_13 -jre-alpine AS builder
4+ FROM eclipse-temurin:21.0.4_7 -jre-alpine AS builder
55ARG JAR_FILE=../build/libs/*.jar
66WORKDIR /workspace/
77COPY $JAR_FILE ./app.jar
88RUN java -Djarmode=layertools -jar ./app.jar extract
99
10- FROM eclipse-temurin:21.0.2_13 -jre-alpine
10+ FROM eclipse-temurin:21.0.4_7 -jre-alpine
1111RUN addgroup webappgroup; adduser --ingroup webappgroup --disabled-password webapp
1212USER webapp
1313WORKDIR /workspace/
You can’t perform that action at this time.
0 commit comments