mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
bump tanner to latest master
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
FROM alpine
|
||||
|
||||
#
|
||||
# Include dist
|
||||
ADD dist/ /root/dist/
|
||||
|
||||
#
|
||||
# Setup apt
|
||||
RUN apk -U --no-cache add \
|
||||
build-base \
|
||||
@ -14,7 +14,7 @@ RUN apk -U --no-cache add \
|
||||
py3-yarl \
|
||||
python3 \
|
||||
python3-dev && \
|
||||
|
||||
#
|
||||
# Setup Tanner
|
||||
git clone --depth=1 https://github.com/mushorg/tanner /opt/tanner && \
|
||||
cp /root/dist/config.py /opt/tanner/tanner/ && \
|
||||
@ -35,13 +35,13 @@ RUN apk -U --no-cache add \
|
||||
setup.py \
|
||||
tanner/data && \
|
||||
cd / && \
|
||||
|
||||
#
|
||||
# Setup configs, user, groups
|
||||
addgroup -g 2000 tanner && \
|
||||
adduser -S -s /bin/ash -u 2000 -D -g 2000 tanner && \
|
||||
mkdir /var/log/tanner && \
|
||||
chown -R tanner:tanner /opt/tanner /var/log/tanner && \
|
||||
|
||||
#
|
||||
# Clean up
|
||||
apk del --purge \
|
||||
build-base \
|
||||
@ -54,7 +54,7 @@ RUN apk -U --no-cache add \
|
||||
rm -rf /root/* && \
|
||||
rm -rf /tmp/* /var/tmp/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
#
|
||||
# Start conpot
|
||||
STOPSIGNAL SIGKILL
|
||||
USER tanner:tanner
|
||||
|
Reference in New Issue
Block a user