subjectid commited on
Commit
3bd8a27
·
verified ·
1 Parent(s): 314cf1c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM gradle:9.6-jdk23 AS builder
2
  WORKDIR /app
3
  RUN --mount=type=secret,id=TOKEN,target=/run/secrets/TOKEN \
4
  export SECRET_VALUE=$(cat /run/secrets/TOKEN) && \
@@ -9,8 +9,7 @@ WORKDIR /app/target
9
  FROM mongo:latest AS Runner
10
  # Install Java 21 (using Debian/Ubuntu base of the Mongo image)
11
  RUN apt-get update && apt-get install -y \
12
- openjdk-23-jre \
13
- && rm -rf /var/lib/apt/lists/*
14
 
15
  # Copy the built JAR from the builder stage
16
  # WORKDIR /app
 
1
+ FROM gradle:9.6-jdk21 AS builder
2
  WORKDIR /app
3
  RUN --mount=type=secret,id=TOKEN,target=/run/secrets/TOKEN \
4
  export SECRET_VALUE=$(cat /run/secrets/TOKEN) && \
 
9
  FROM mongo:latest AS Runner
10
  # Install Java 21 (using Debian/Ubuntu base of the Mongo image)
11
  RUN apt-get update && apt-get install -y \
12
+ openjdk-21-jre \
 
13
 
14
  # Copy the built JAR from the builder stage
15
  # WORKDIR /app