From 8336520689374ab785d3f32297dfd9028b5252fc Mon Sep 17 00:00:00 2001 From: Viji Date: Thu, 29 Aug 2024 17:30:53 +0530 Subject: [PATCH] fix: Open jdk installation issue in the docker file --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58893fe8..063aa1c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,10 +21,12 @@ RUN apt-get update && \ apt-get -y install --no-install-recommends maven && \ apt-get -y install --no-install-recommends curl && \ apt-get -y install --no-install-recommends dpkg-dev && \ - apt-get remove -y python3.11 && \ - curl -o openjdk-17-jre-headless_17.0.9+9-1~deb12u1_amd64.deb https://snapshot.debian.org/archive/debian-security/20231105T195436Z/pool/updates/main/o/openjdk-17/openjdk-17-jre-headless_17.0.9+9-1~deb12u1_amd64.deb && \ + apt-get remove -y python3.11 && \ + curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /opt/DebianImageClearing v0.90.0 + +RUN apt-get update && \ + curl -L -o openjdk-17-jre-headless_17.0.9+9-1~deb12u1_amd64.deb https://snapshot.debian.org/archive/debian-security/20231105T195436Z/pool/updates/main/o/openjdk-17/openjdk-17-jre-headless_17.0.9+9-1~deb12u1_amd64.deb && \ dpkg -i openjdk-17-jre-headless_17.0.9+9-1~deb12u1_amd64.deb && \ - curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /opt/DebianImageClearing v0.90.0 && \ rm -rf /var/lib/apt/lists/* && \ rm -rf archive.tar.gz @@ -32,4 +34,4 @@ ENV PATH="/root/.local/bin:$PATH" # Copying files from host to current working directory # COPY /out/net8.0 /app/out - COPY /buildoutput/ /app/out +COPY /buildoutput/ /app/out