-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
34 lines (24 loc) · 1002 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ARG detect_latest_release_version=7.14.0
FROM philipssoftware/python:java-3.9
MAINTAINER Forest Keepers
ARG detect_latest_release_version
ENV DETECT_LATEST_RELEASE_VERSION $detect_latest_release_version
ENV DETECT_VERSION_KEY $detect_latest_release_version
ENV SRC_PATH /code
USER root
RUN apt-get update && \
apt-get install -y \
netcat-openbsd && \
rm -rf /var/lib/apt/lists/*
RUN curl -sSL https://install.python-poetry.org | python -
# Download detect 6 script
RUN mkdir -p /app \
&& curl -o /app/detect6.sh https://detect.synopsys.com/detect.sh \
&& chmod +x /app/detect6.sh \
&& /app/detect6.sh --help
# Download detect 7 script - We want default to 7
RUN mkdir -p /app \
&& curl -o /app/detect.sh https://detect.synopsys.com/detect7.sh \
&& chmod +x /app/detect.sh \
&& /app/detect.sh --help
CMD /app/detect.sh --blackduck.hub.url="${HUB_URL}" --blackduck.hub.api.token="${HUB_TOKEN}" --detect.policy.check=true --detect.source.path="${SRC_PATH}"