From a376b8b2bb41540b973ba14cc3c74ecac2fd553d Mon Sep 17 00:00:00 2001 From: Joshua Nussbaum <145164917+jnussbaumol@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:08:30 -0500 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5ccef91..4db3b63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,9 @@ RUN apt-get update \ # Installing Cyclone BoM generates for the different supported languages #RUN mkdir /home/dtrack && cd /home/dtrack && git clone git@github.com:SCRATCh-ITEA3/dtrack-demonstrator.git +RUN go mod init deptrack/main RUN go get github.com/ozonru/cyclonedx-go/cmd/cyclonedx-go && cp /root/go/bin/cyclonedx-go /usr/bin/ +run rm go.mod COPY cyclonedx-linux-x64 /usr/bin/cyclonedx-cli RUN chmod +x /usr/bin/cyclonedx-cli @@ -26,4 +28,4 @@ RUN chmod +x /usr/bin/cyclonedx-cli # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh # Code file to execute when the docker container starts up (`entrypoint.sh`) -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] From 0d629fa1463b797d51c1427fa8524fe07f957901 Mon Sep 17 00:00:00 2001 From: Joshua Nussbaum <145164917+jnussbaumol@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:12:52 -0500 Subject: [PATCH 2/2] fix typo --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4db3b63..5a06164 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN apt-get update \ #RUN mkdir /home/dtrack && cd /home/dtrack && git clone git@github.com:SCRATCh-ITEA3/dtrack-demonstrator.git RUN go mod init deptrack/main RUN go get github.com/ozonru/cyclonedx-go/cmd/cyclonedx-go && cp /root/go/bin/cyclonedx-go /usr/bin/ -run rm go.mod +RUN rm go.mod COPY cyclonedx-linux-x64 /usr/bin/cyclonedx-cli RUN chmod +x /usr/bin/cyclonedx-cli