Skip to content

Commit 52da5bc

Browse files
authored
Merge pull request #111 from TAMULib/swap-jre-base-image
Issue 110: Swap JRE base image from openjdk to eclipse
2 parents 48d00c4 + f3485ed commit 52da5bc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,16 @@ USER $USER_NAME
4040
RUN mvn package -Pjar -DskipTests=true
4141

4242
# Switch to Normal JRE Stage.
43-
FROM openjdk:11-jre-slim
43+
FROM eclipse-temurin:11-jre-noble
4444
ARG USER_ID
4545
ARG USER_NAME
4646
ARG SOURCE_DIR
4747

48+
RUN apt-get update && \
49+
apt-get upgrade -y && \
50+
apt-get clean && \
51+
rm -rf /var/lib/apt/lists/*
52+
4853
# Create the user and group (use a high ID to attempt to avoid conflicts).
4954
RUN groupadd --non-unique -g $USER_ID $USER_NAME && \
5055
useradd --non-unique -d /$USER_NAME -m -u $USER_ID -g $USER_ID $USER_NAME

0 commit comments

Comments
 (0)