Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ COPY requirements.txt /
RUN python3 -m pip install --no-cache-dir --break-system-packages -r /requirements.txt

# Initialise OWASP DB if UPDATE_DB = true
# nvdApiDelay of 700ms prevents 429 rate limit errors from NVD API, where "50 requests in a rolling 30 second window" rule is applied.
RUN ! ${UPDATE_DB} || /usr/share/dependency-check/bin/dependency-check.sh --updateonly ${NVD_API_KEY:+--nvdApiKey=${NVD_API_KEY} --nvdApiDelay=700}
# nvdApiDelay of 600ms prevents 429 rate limit errors from NVD API, where "50 requests in a rolling 30 second window" rule is applied.
RUN ! ${UPDATE_DB} || /usr/share/dependency-check/bin/dependency-check.sh --updateonly ${NVD_API_KEY:+--nvdApiKey=${NVD_API_KEY} --nvdApiDelay=600}

COPY pipe /
USER root
Expand Down
2 changes: 1 addition & 1 deletion hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

docker build \
--build-arg UPDATE_DB=$UPDATE_DB \
--build-arg NVD_API_FEED=$NVD_API_FEED \
--build-arg NVD_API_KEY=$NVD_API_KEY \
-f $DOCKERFILE_PATH \
-t $IMAGE_NAME .