-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update JVM to OpenJDK 17.x in Docker images for security…
… improvements
- Loading branch information
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
FROM alpine:3.19 AS builder | ||
LABEL maintainer="Pedro Sanders <[email protected]>" | ||
|
||
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk | ||
WORKDIR /work | ||
|
||
COPY .scripts/custom-jre.sh . | ||
|
||
RUN apk add --no-cache --update openjdk11-jdk \ | ||
RUN apk add --no-cache --update g++ openjdk17-jdk \ | ||
&& sh custom-jre.sh | ||
|
||
## | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,18 @@ | |
FROM alpine:3.19 AS builder | ||
LABEL maintainer="Pedro Sanders <[email protected]>" | ||
|
||
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk | ||
WORKDIR /work | ||
|
||
COPY .scripts/custom-jre.sh . | ||
|
||
RUN apk add --no-cache --update openjdk11-jdk \ | ||
RUN apk add --no-cache --update g++ openjdk17-jdk \ | ||
&& sh custom-jre.sh | ||
|
||
## | ||
## Runner | ||
## | ||
FROM alpine:3.19 AS runner | ||
FROM alpine:3.19 AS runner | ||
|
||
RUN mkdir -p /opt/routr && apk add --no-cache tini | ||
WORKDIR /opt/routr | ||
|