Skip to content

Commit

Permalink
mvn pip and gradle in docker for cdxbom
Browse files Browse the repository at this point in the history
  • Loading branch information
siewer committed Sep 20, 2024
1 parent 235ee85 commit aa9c6e4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ WORKDIR /app
# Copy the built JAR file from the previous stage to the container
COPY --from=maven_build /app/target/MixewayFlowAPI-0.0.1-SNAPSHOT.jar flowapi.jar

# Install dependencies and Node.js
# Install dependencies, Node.js, Maven, Python, and pip
RUN apt-get update && \
apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
Expand All @@ -23,6 +23,9 @@ RUN apt-get update && \
unzip \
git \
nodejs \
maven \
python3 \
python3-pip \
&& apt-get clean

# Install cdxgen globally
Expand All @@ -46,6 +49,15 @@ RUN wget -O jdk22.tar.gz https://download.oracle.com/java/22/latest/jdk-22_linux
ENV JAVA_HOME=/usr/local/jdk-22
ENV PATH="$JAVA_HOME/bin:$PATH"

# Install Gradle
ENV GRADLE_VERSION=8.4
RUN wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip -P /tmp \
&& unzip /tmp/gradle-${GRADLE_VERSION}-bin.zip -d /opt/gradle \
&& rm /tmp/gradle-${GRADLE_VERSION}-bin.zip
ENV GRADLE_HOME=/opt/gradle/gradle-${GRADLE_VERSION}
ENV PATH="$PATH:$GRADLE_HOME/bin"


RUN mkdir /opt/kics
RUN mkdir /opt/dtrack
COPY --from=kics /app/bin/kics /usr/local/bin/kics
Expand Down

0 comments on commit aa9c6e4

Please sign in to comment.