-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (13 loc) · 855 Bytes
/
Dockerfile
File metadata and controls
21 lines (13 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM alpine:3.13
# Update, get bash
RUN apk update && apk add bash && apk add curl
# Required for standalone nuget inspector
RUN apk add libstdc++ && apk add gcompat && apk add icu
# 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/artifactory/bds-integrations-release/com/synopsys/integration/synopsys-detect/7.13.2/synopsys-detect-7.13.2.jar
RUN if [ $(curl --silent -L -w '%{http_code}' -o /synopsys-detect.jar --create-dirs ${DETECT_SOURCE}) != "200" ]; then echo "Unable to download Detect jar from ${DETECT_SOURCE}"; 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"]