Skip to content

Commit

Permalink
remove python3.11 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ragavareddychalapala committed Sep 1, 2024
1 parent 959c507 commit 9aebab8
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# SPDX-FileCopyrightText: 2024 Siemens AG
# SPDX-License-Identifier: MIT

# Get parent image as latest debian patch of bullseye
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim
WORKDIR /app/out

# Creating required directories
RUN mkdir /opt/DebianImageClearing && \
mkdir /mnt/Input && \
mkdir /mnt/Output && \
mkdir /etc/CATool && \
mkdir /app/out/PatchedFiles

# Installing required packages
# Installing syft:v0.90.0
# Installing specific version of openjdk
Expand All @@ -20,18 +20,24 @@ RUN apt-get update && \
apt-get -y install --no-install-recommends git && \
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 && \
dpkg -r --force-depends python3.11 && \
apt-get -y install --no-install-recommends dpkg-dev && \
dpkg -r --force-depends python3-minimal && \
dpkg -r --force-depends libpython3.11-minimal:amd64 && \
dpkg -r --force-depends libpython3.11-stdlib:amd64 && \
dpkg -r --force-depends python3.11 && \
dpkg -r --force-depends python3.11-minimal && \
dpkg --purge libpython3.11-minimal:amd64 && \
dpkg --purge python3.11-minimal && \
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 && \
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

0 comments on commit 9aebab8

Please sign in to comment.