-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Viji
committed
Sep 4, 2024
1 parent
538cd81
commit 90c13db
Showing
149 changed files
with
229,446 additions
and
180,241 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
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
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
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 |
---|---|---|
@@ -1,30 +1,43 @@ | ||
# SPDX-FileCopyrightText: 2024 Siemens AG | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Get parent image as latest debian patch of bullseye | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim-amd64 | ||
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 | ||
RUN apt-get update && \ | ||
apt-get -y install --no-install-recommends nodejs npm && \ | ||
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 && \ | ||
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /opt/DebianImageClearing v0.90.0 && \ | ||
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 |
Oops, something went wrong.