-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (12 loc) · 790 Bytes
/
Dockerfile
File metadata and controls
19 lines (12 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3.13
# Update, get bash
RUN apk update && apk add bash && apk add curl
# Java
RUN apk --no-cache add openjdk11-jre
ENV BDS_JAVA_HOME=/usr/lib/jvm/java-11-openjdk
# Download Detect jar
ARG DETECT_SOURCE=https://repo.blackduck.com/bds-integrations-release/com/synopsys/integration/synopsys-detect/7.0.0/synopsys-detect-7.0.0.jar
RUN curl --silent -w "%{http_code}" -L -o /synopsys-detect.jar --create-dirs ${DETECT_SOURCE} \
&& if [[ ! -f /synopsys-detect.jar ]]; then echo "Unable to download Detect 7.0.0 jar" && exit -1 ; fi
# Define Docker Image entrypoint
ENTRYPOINT ["java", "-jar", "/synopsys-detect.jar", "--detect.source.path=/source", "--detect.output.path=/output", "--detect.phone.home.passthrough.invoked.by.image=true", "--detect.detector.buildless=true"]