File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed
integrations/nuclei_analyzer Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,6 @@ EXPOSE 5000
2323COPY entrypoint.sh /entrypoint.sh
2424RUN chmod +x /entrypoint.sh
2525
26+ # RUN nuclei -update-template-dir /opt/nuclei-api/nuclei-templates -update-templates
27+
2628ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ services:
33 build :
44 context : ../integrations/nuclei_analyzer
55 dockerfile : Dockerfile
6- image : pranjalg1310/nuclei-analyzer:3.0.3
6+ image : pranjalg1310/nuclei-analyzer:3.0.4
Original file line number Diff line number Diff line change 22
33services :
44 nuclei_analyzer :
5- image : pranjalg1310/nuclei-analyzer:3.0.3
5+ image : pranjalg1310/nuclei-analyzer:3.0.4
66 container_name : nuclei_analyzer
77 restart : unless-stopped
88 expose :
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- # Update Nuclei templates
4- nuclei -update-template-dir /opt/nuclei-api/nuclei-templates -update-templates
5- sleep 60
63TEMPLATES_DIR=" /opt/nuclei-api/nuclei-templates"
74
8- echo " Waiting for Nuclei templates to be available..."
5+ echo " Updating Nuclei templates..."
6+ nuclei -update-template-dir $TEMPLATES_DIR -update-templates
7+
8+ echo " Verifying Nuclei templates..."
99while [ ! -d " $TEMPLATES_DIR " ] || [ -z " $( ls -A $TEMPLATES_DIR ) " ]; do
10- echo " Templates not found, retrying in 10 seconds..."
10+ echo " Templates not found or empty, retrying update in 10 seconds..."
11+ nuclei -update-template-dir $TEMPLATES_DIR -update-templates
1112 sleep 10
1213done
1314
14- echo " Templates downloaded successfully. Starting Flask app..."
15-
16- # Start the Flask app
17- exec gunicorn -b 0.0.0.0:4008 --timeout 120 --access-logfile - " app:app"
15+ echo " Templates downloaded successfully. Starting Flask API..."
16+ exec gunicorn -b 0.0.0.0:4008 --timeout 120 --access-logfile - " app:app"
You can’t perform that action at this time.
0 commit comments