mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00

healthcheck, watch pid not cpu cleanup dockerfiles bump dicompot, heralding, elasticpot, endlessh to alpine 3.19 bump dionaea, heralding to latest master
47 lines
1.0 KiB
Docker
47 lines
1.0 KiB
Docker
FROM alpine:edge
|
|
#
|
|
# Include dist
|
|
COPY dist/ /opt/tpot/
|
|
#
|
|
# Get and install dependencies & packages
|
|
RUN apk --no-cache -U add \
|
|
aria2 \
|
|
apache2-utils \
|
|
bash \
|
|
bind-tools \
|
|
conntrack-tools \
|
|
curl \
|
|
ethtool \
|
|
figlet \
|
|
git \
|
|
grep \
|
|
iproute2 \
|
|
iptables \
|
|
iptables-legacy \
|
|
jq \
|
|
logrotate \
|
|
lsblk \
|
|
net-tools \
|
|
openssl \
|
|
pigz \
|
|
tar \
|
|
uuidgen && \
|
|
apk --no-cache -U add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \
|
|
yq && \
|
|
#
|
|
# Setup user
|
|
addgroup -g 2000 tpot && \
|
|
adduser -S -s /bin/ash -u 2000 -D -g 2000 tpot && \
|
|
#
|
|
# Clean up
|
|
apk del --purge git && \
|
|
rm -rf /root/* /tmp/* && \
|
|
rm -rf /root/.cache /opt/tpot/.git && \
|
|
rm -rf /var/cache/apk/*
|
|
#
|
|
# Run tpotinit
|
|
WORKDIR /opt/tpot
|
|
HEALTHCHECK --interval=5m --timeout=30s --retries=3 CMD pgrep -f autoheal || exit 1
|
|
STOPSIGNAL SIGKILL
|
|
CMD ["/opt/tpot/entrypoint.sh"]
|