2023-06-13 21:59:09 +00:00
|
|
|
FROM alpine:edge
|
|
|
|
#
|
|
|
|
# Include dist
|
|
|
|
COPY dist/ /opt/tpot/
|
|
|
|
#
|
|
|
|
# Get and install dependencies & packages
|
|
|
|
RUN apk --no-cache -U add \
|
|
|
|
aria2 \
|
|
|
|
apache2-utils \
|
|
|
|
bash \
|
2023-06-14 00:17:09 +00:00
|
|
|
bind-tools \
|
2023-06-13 21:59:09 +00:00
|
|
|
conntrack-tools \
|
2023-06-14 00:17:09 +00:00
|
|
|
curl \
|
|
|
|
ethtool \
|
|
|
|
figlet \
|
2023-06-13 21:59:09 +00:00
|
|
|
git \
|
|
|
|
grep \
|
2023-06-14 00:17:09 +00:00
|
|
|
iproute2 \
|
|
|
|
iptables \
|
|
|
|
iptables-legacy \
|
|
|
|
jq \
|
|
|
|
logrotate \
|
|
|
|
lsblk \
|
|
|
|
net-tools \
|
|
|
|
openssl \
|
|
|
|
pigz \
|
|
|
|
tar \
|
|
|
|
uuidgen && \
|
2023-06-13 21:59:09 +00:00
|
|
|
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
|
2024-02-28 18:07:22 +00:00
|
|
|
HEALTHCHECK --interval=5m --timeout=30s --retries=3 CMD pgrep -f autoheal || exit 1
|
2023-06-13 21:59:09 +00:00
|
|
|
STOPSIGNAL SIGKILL
|
|
|
|
CMD ["/opt/tpot/entrypoint.sh"]
|