Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Updated java 21 in Docker
  • Loading branch information
deoyani authored May 22, 2024
1 parent 38d2f58 commit e715d12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/build-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM eclipse-temurin:8-jdk-focal
#FROM eclipse-temurin:8-jdk-focal
FROM eclipse-temurin:21-jdk

RUN mkdir -p /usr/share/man/man1
RUN apt-get update && apt-get install -y netcat-openbsd zip git less \
Expand All @@ -7,7 +8,7 @@ RUN cd /usr/bin && ln -s python3 python

COPY cacerts/README.md cacerts/*.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
RUN java_certs=$JAVA_HOME/jre/lib/security/cacerts; \
RUN java_certs=$JAVA_HOME/lib/security/cacerts; \
add_certs=`ls /usr/local/share/ca-certificates/*.crt` && \
for crt in $add_certs; do \
name=`basename -s .crt $crt`; \
Expand Down

0 comments on commit e715d12

Please sign in to comment.