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..d473547 --- /dev/null +++ b/java/11/chainguard/latest/detect/template/buildless/Dockerfile @@ -0,0 +1,17 @@ +# Use a full image so we have tools to setup +FROM artifactory.tools.duckutil.net:5002/blackducksoftware/blackduck-basejre-chainguard-dev:3.0.1 AS downloader + +# Download Detect jar +ARG DETECT_SOURCE= +RUN wget -O /tmp/detect.jar --server-response ${DETECT_SOURCE} + +# For the final built image use a non-dev release so we remove various tool vulnerabilities +# from the final image. +FROM artifactory.tools.duckutil.net:5002/blackducksoftware/blackduck-basejre-chainguard:3.0.1 +COPY --from=downloader /tmp/detect.jar /tmp/detect.jar + +ENV BDS_JAVA_HOME=/usr/lib/jvm/java-11-openjdk +ENV PATH="${BDS_JAVA_HOME}/bin:${PATH}" + +# Define Docker Image entrypoint +ENTRYPOINT ["java", "-jar", "/tmp/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..4062828 --- /dev/null +++ b/java/11/chainguard/latest/detect/template/standard/Dockerfile @@ -0,0 +1,17 @@ +# Use a full image so we have tools to setup +FROM artifactory.tools.duckutil.net:5002/blackducksoftware/blackduck-basejre-chainguard-dev:3.0.1 AS downloader + +# Download Detect jar +ARG DETECT_SOURCE= +RUN wget -O /tmp/detect.jar --server-response ${DETECT_SOURCE} + +# For the final built image use a non-dev release so we remove various tool vulnerabilities +# from the final image. +FROM artifactory.tools.duckutil.net:5002/blackducksoftware/blackduck-basejre-chainguard:3.0.1 +COPY --from=downloader /tmp/detect.jar /tmp/detect.jar + +ENV BDS_JAVA_HOME=/usr/lib/jvm/java-11-openjdk +ENV PATH="${BDS_JAVA_HOME}/bin:${PATH}" + +# Define Docker Image entrypoint +ENTRYPOINT ["java", "-jar", "/tmp/detect.jar", "--detect.source.path=/source", "--detect.output.path=/output", "--detect.phone.home.passthrough.invoked.by.image=true"]