Skip to content
Merged
17 changes: 17 additions & 0 deletions java/11/chainguard/latest/detect/template/buildless/Dockerfile
Original file line number Diff line number Diff line change
@@ -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=<detectsource>
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"]
17 changes: 17 additions & 0 deletions java/11/chainguard/latest/detect/template/standard/Dockerfile
Original file line number Diff line number Diff line change
@@ -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=<detectsource>
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"]