bump tanner to latest master

This commit is contained in:
t3chn0m4g3
2019-08-16 14:43:10 +00:00
parent 786ab5c082
commit e0427cfc21
5 changed files with 30 additions and 25 deletions

View File

@ -1,8 +1,8 @@
FROM alpine
#
# Include dist
ADD dist/ /root/dist/
#
# Setup apt
RUN apk -U --no-cache add \
build-base \
@ -10,7 +10,7 @@ RUN apk -U --no-cache add \
linux-headers \
python3 \
python3-dev && \
#
# Setup Snare
git clone --depth=1 https://github.com/mushorg/snare /opt/snare && \
cd /opt/snare/ && \
@ -21,7 +21,7 @@ RUN apk -U --no-cache add \
rm -rf /opt/snare && \
clone --target http://example.com && \
mv /root/dist/pages/* /opt/snare/pages/ && \
#
# Clean up
apk del --purge \
build-base \
@ -30,7 +30,7 @@ RUN apk -U --no-cache add \
rm -rf /root/* && \
rm -rf /tmp/* /var/tmp/* && \
rm -rf /var/cache/apk/*
#
# Start snare
STOPSIGNAL SIGKILL
CMD snare --tanner tanner --debug true --no-dorks true --auto-update false --host-ip 0.0.0.0 --port 80 --page-dir $(shuf -i 1-10 -n 1)