Enhance searchsploit database update command in Dockerfile for better error handling

This commit is contained in:
John Doe
2026-03-03 00:53:19 -05:00
parent 158ef226bd
commit 82d51b53d8
+2 -2
View File
@@ -37,8 +37,8 @@ RUN apt-get update && apt-get install -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Update searchsploit database at build time
RUN searchsploit -u
# Update searchsploit database at build time (best effort; mirrors can be flaky)
RUN (searchsploit -u || (sleep 5 && searchsploit -u) || echo "[WARN] searchsploit -u failed due to mirror/hash issue; continuing with installed exploitdb package")
# Install waybackurls using Go
RUN go install github.com/tomnomnom/waybackurls@latest && \