-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.deps
More file actions
38 lines (29 loc) · 1.25 KB
/
Dockerfile.deps
File metadata and controls
38 lines (29 loc) · 1.25 KB
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
35
36
37
38
# docker build -f Dockerfile.deps -t detect-deps .
# docker run --rm -it -p detect-deps
FROM python:3.14
ARG DETECT_VERSION=11.1.0
RUN apt-get update && apt-get install -y \
default-jre-headless \
git curl ca-certificates unzip \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /root/.blackduck/bridge/tools/blackduck-detect/${DETECT_VERSION} \
&& curl -fLsS -L \
https://repo.blackduck.com/artifactory/bds-integrations-release/com/blackduck/integration/detect/${DETECT_VERSION}/detect-${DETECT_VERSION}.jar \
-o /root/.blackduck/bridge/tools/blackduck-detect/${DETECT_VERSION}/detect-${DETECT_VERSION}.jar
# Install bridge-cli thin client
RUN curl -fLsS -L \
https://repo.blackduck.com/bds-integrations-release/com/blackduck/integration/bridge/binaries/bridge-cli-thin-client/latest/bridge-cli-linux_arm.zip \
-o /tmp/bridge-cli.zip \
&& unzip /tmp/bridge-cli.zip -d /opt/bridge-cli \
&& rm /tmp/bridge-cli.zip \
&& chmod +x /opt/bridge-cli/bridge-cli
ENV PATH="/opt/bridge-cli:${PATH}"
# Download all adapters
RUN bridge-cli --use all@latest
RUN bridge-cli --install blackducksca@latest
WORKDIR /scan
# Copy project files for scanning
COPY src/ ./src/
COPY Pipfile Pipfile.lock ./
COPY scan.py status.py ./
CMD ["python", "scan.py"]