diff --git a/java/11/chainguard/latest/detect/template/buildless/Dockerfile b/java/11/chainguard/latest/detect/template/buildless/Dockerfile new file mode 100644 index 0000000..e0fb3b4 --- /dev/null +++ b/java/11/chainguard/latest/detect/template/buildless/Dockerfile @@ -0,0 +1,17 @@ +FROM artifactory.tools.duckutil.net:5002/blackducksoftware/blackduck-basejre-chainguard-dev:3.0.1 + +# Update, upgrade, and add required packages +RUN apk --no-cache update && \ + apk --no-cache upgrade && \ + apk --no-cache add bash + +RUN apk --no-cache add openjdk-11-jre + +ENV BDS_JAVA_HOME=/usr/lib/jvm/java-11-openjdk +ENV PATH="${BDS_JAVA_HOME}/bin:${PATH}" + +ARG DETECT_SOURCE= + +RUN wget -O /detect.jar --server-response ${DETECT_SOURCE} + +ENTRYPOINT ["java", "-jar", "/detect.jar", "--detect.source.path=/source", "--detect.output.path=/output", "--detect.phone.home.passthrough.invoked.by.image=true", "--detect.accuracy.required=NONE"] diff --git a/java/11/chainguard/latest/detect/template/standard/Dockerfile b/java/11/chainguard/latest/detect/template/standard/Dockerfile new file mode 100644 index 0000000..df1f2d0 --- /dev/null +++ b/java/11/chainguard/latest/detect/template/standard/Dockerfile @@ -0,0 +1,22 @@ +FROM artifactory.tools.duckutil.net:5002/blackducksoftware/blackduck-basejre-chainguard-dev:3.0.1 + +# Update, upgrade, and add required packages +RUN apk --no-cache update && \ + apk --no-cache upgrade && \ + apk --no-cache add bash + +# Required for standalone nuget inspector +# Note: gcompat is not needed - Wolfi uses glibc natively (Alpine uses musl, which needed gcompat) +RUN apk --no-cache add libstdc++ icu + +# Java, use headless as it brings in less dependencies +RUN apk --no-cache add openjdk-11-jre + +ENV BDS_JAVA_HOME=/usr/lib/jvm/java-11-openjdk +ENV PATH="${BDS_JAVA_HOME}/bin:${PATH}" + +ARG DETECT_SOURCE= + +RUN wget -O /detect.jar --server-response ${DETECT_SOURCE} + +ENTRYPOINT ["java", "-jar", "/detect.jar", "--detect.source.path=/source", "--detect.output.path=/output", "--detect.phone.home.passthrough.invoked.by.image=true"]