mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tanner, snare, deps
This commit is contained in:
41
docker/tanner/tanner/Dockerfile
Normal file
41
docker/tanner/tanner/Dockerfile
Normal file
@ -0,0 +1,41 @@
|
||||
FROM alpine
|
||||
|
||||
# Include dist
|
||||
ADD dist/ /root/dist/
|
||||
|
||||
# Setup apt
|
||||
RUN apk -U --no-cache add \
|
||||
build-base \
|
||||
git \
|
||||
libcap \
|
||||
linux-headers \
|
||||
py3-yarl \
|
||||
python3 \
|
||||
python3-dev && \
|
||||
|
||||
# Setup ConPot
|
||||
git clone https://github.com/mushorg/tanner /opt/tanner && \
|
||||
cp /root/dist/config.py /opt/tanner/tanner/ && \
|
||||
cp /root/dist/requirements.txt /opt/tanner/ && \
|
||||
cd /opt/tanner/ && \
|
||||
pip3 install --no-cache-dir --upgrade pip setuptools && \
|
||||
pip3 install --no-cache-dir -r requirements.txt && \
|
||||
python3 setup.py install && \
|
||||
cd / && \
|
||||
|
||||
# Get wireshark manuf db for scapy, setup configs, user, groups
|
||||
addgroup -g 2000 tanner && \
|
||||
adduser -S -s /bin/ash -u 2000 -D -g 2000 tanner && \
|
||||
|
||||
# Clean up
|
||||
apk del --purge \
|
||||
build-base \
|
||||
linux-headers \
|
||||
python3-dev && \
|
||||
rm -rf /root/* && \
|
||||
rm -rf /tmp/* /var/tmp/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
# Start conpot
|
||||
WORKDIR /opt/tanner
|
||||
CMD tanner
|
Reference in New Issue
Block a user