Skip to content

Commit

Permalink
fix: Open jdk installation issue in the docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Viji committed Aug 29, 2024
1 parent 6b57023 commit 8336520
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ 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

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

0 comments on commit 8336520

Please sign in to comment.