Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kotlin-web-spring-boot-3/docker/dev-debug.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# FROM eclipse-temurin:17-jre-alpine AS builder
# Should move to use Ubuntu for production environment
# Refer: https://www.dotcms.com/blog/post/moving-to-ubuntu-for-our-docker-image
FROM eclipse-temurin:21.0.2_13-jre-alpine AS builder
FROM eclipse-temurin:21.0.8_9-jre-alpine AS builder
ARG JAR_FILE=../build/libs/*.jar
WORKDIR /workspace/
COPY $JAR_FILE ./app.jar
RUN java -Djarmode=layertools -jar ./app.jar extract

FROM eclipse-temurin:21.0.2_13-jre-alpine
FROM eclipse-temurin:21.0.8_9-jre-alpine
RUN addgroup webappgroup; adduser --ingroup webappgroup --disabled-password webapp
USER webapp
WORKDIR /workspace/
Expand Down
2 changes: 1 addition & 1 deletion kotlin-web-spring-boot-3/docker/dev-jlink.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:21.0.2_13-jdk-alpine AS builder
FROM eclipse-temurin:21.0.8_9-jdk-alpine AS builder
ARG JAR_FILE=../build/libs/*.jar
WORKDIR /workspace/
RUN $JAVA_HOME/bin/jlink --add-modules java.se,jdk.jdwp.agent --strip-debug --no-man-pages --no-header-files --compress=2 --output ./jre/
Expand Down
4 changes: 2 additions & 2 deletions kotlin-web-spring-boot-3/docker/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# FROM eclipse-temurin:17-jre-alpine AS builder
# Should move to use Ubuntu for production environment
# Refer: https://www.dotcms.com/blog/post/moving-to-ubuntu-for-our-docker-image
FROM eclipse-temurin:21.0.2_13-jre-alpine AS builder
FROM eclipse-temurin:21.0.8_9-jre-alpine AS builder
ARG JAR_FILE=../build/libs/*.jar
WORKDIR /workspace/
COPY $JAR_FILE ./app.jar
RUN java -Djarmode=layertools -jar ./app.jar extract

FROM eclipse-temurin:21.0.2_13-jre-alpine
FROM eclipse-temurin:21.0.8_9-jre-alpine
RUN addgroup webappgroup; adduser --ingroup webappgroup --disabled-password webapp
USER webapp
WORKDIR /workspace/
Expand Down
Loading