Skip to content

Commit 4723594

Browse files
committed
Hotfix: download nuclei directly in Dockerfile instead of copying from vendor
1 parent e5f5745 commit 4723594

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

webqa_agent/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@ ENV PYTHONPATH=/app
1010
RUN apt-get update && apt-get install -y curl unzip \
1111
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
1212
&& apt-get install -y nodejs \
13+
&& curl -L -o /tmp/nuclei.zip https://github.com/projectdiscovery/nuclei/releases/download/v3.3.7/nuclei_3.3.7_linux_amd64.zip \
14+
&& unzip -o /tmp/nuclei.zip -d /usr/local/bin/ \
15+
&& chmod +x /usr/local/bin/nuclei \
16+
&& rm /tmp/nuclei.zip \
1317
&& apt-get purge -y curl && apt-get autoremove -y \
1418
&& rm -rf /var/lib/apt/lists/*
1519

1620
COPY webqa_agent/package.json /app/package.json
1721
RUN npm install
1822

19-
COPY vendor/nuclei_3.3.7_linux_amd64.zip /tmp/nuclei.zip
20-
RUN unzip -o /tmp/nuclei.zip -d /usr/local/bin/ \
21-
&& chmod +x /usr/local/bin/nuclei \
22-
&& rm /tmp/nuclei.zip
23-
2423
COPY webqa_agent/requirements.txt /app/requirements.txt
2524
RUN pip install --no-cache-dir --default-timeout=300 -r requirements.txt
2625

0 commit comments

Comments
 (0)