mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 03:38:51 +00:00
28 lines
805 B
Docker
28 lines
805 B
Docker
FROM alpine:3.15
|
|
#
|
|
# Install packages
|
|
RUN apk -U --no-cache add \
|
|
git \
|
|
libcap \
|
|
python2 && \
|
|
#
|
|
# Install mailoney from git
|
|
git clone https://github.com/t3chn0m4g3/mailoney /opt/mailoney && \
|
|
cd /opt/mailoney && \
|
|
#
|
|
# Setup user, groups and configs
|
|
addgroup -g 2000 mailoney && \
|
|
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 mailoney && \
|
|
chown -R mailoney:mailoney /opt/mailoney && \
|
|
setcap cap_net_bind_service=+ep /usr/bin/python2.7 && \
|
|
#
|
|
# Clean up
|
|
apk del --purge git && \
|
|
rm -rf /root/* && \
|
|
rm -rf /var/cache/apk/*
|
|
#
|
|
# Set workdir and start mailoney
|
|
STOPSIGNAL SIGINT
|
|
USER mailoney:mailoney
|
|
WORKDIR /opt/mailoney/
|
|
CMD ["/usr/bin/python","mailoney.py","-i","0.0.0.0","-p","25","-s","mailrelay.local","-t","schizo_open_relay"]
|