mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 20:42:11 +00:00
prep mailoney for rebuild
This commit is contained in:
parent
32e1e8a8ea
commit
8576e576a6
2 changed files with 25 additions and 21 deletions
|
@ -1,16 +1,17 @@
|
||||||
FROM alpine:3.11
|
FROM debian:buster-slim
|
||||||
#
|
#
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk -U --no-cache add \
|
RUN apt-get update -y && \
|
||||||
|
apt-get install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
build-base \
|
build-essential \
|
||||||
git \
|
git \
|
||||||
libcap \
|
libcap2-bin \
|
||||||
libtool \
|
libtool \
|
||||||
py-pip \
|
python2 \
|
||||||
python \
|
python2-dev \
|
||||||
python-dev && \
|
python-pip && \
|
||||||
#
|
#
|
||||||
# Install libemu
|
# Install libemu
|
||||||
git clone https://github.com/buffer/libemu /root/libemu/ && \
|
git clone https://github.com/buffer/libemu /root/libemu/ && \
|
||||||
|
@ -32,23 +33,26 @@ RUN apk -U --no-cache add \
|
||||||
git checkout 85c37649a99e1cec3f8d48d509653c9a8127ea4f && \
|
git checkout 85c37649a99e1cec3f8d48d509653c9a8127ea4f && \
|
||||||
#
|
#
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
addgroup -g 2000 mailoney && \
|
addgroup --gid 2000 mailoney && \
|
||||||
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 mailoney && \
|
adduser --system --no-create-home --shell /bin/bash --uid 2000 --disabled-password --disabled-login --gid 2000 mailoney && \
|
||||||
chown -R mailoney:mailoney /opt/mailoney && \
|
chown -R mailoney:mailoney /opt/mailoney && \
|
||||||
setcap cap_net_bind_service=+ep /usr/bin/python2.7 && \
|
setcap cap_net_bind_service=+ep /usr/bin/python2.7 && \
|
||||||
#
|
#
|
||||||
# Clean up
|
# Clean up
|
||||||
apk del --purge autoconf \
|
apt-get purge -y \
|
||||||
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
build-base \
|
build-essential \
|
||||||
git \
|
git \
|
||||||
py-pip \
|
libtool \
|
||||||
python-dev && \
|
python2-dev \
|
||||||
rm -rf /root/* && \
|
python-pip && \
|
||||||
rm -rf /var/cache/apk/*
|
apt-get autoremove --purge -y && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /root/* /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
#
|
#
|
||||||
# Set workdir and start mailoney
|
# Set workdir and start mailoney
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
USER mailoney:mailoney
|
USER mailoney:mailoney
|
||||||
WORKDIR /opt/mailoney/
|
WORKDIR /opt/mailoney/
|
||||||
CMD ["/usr/bin/python","mailoney.py","-i","0.0.0.0","-p","25","-s","mailrelay.local","-t","schizo_open_relay"]
|
CMD ["/usr/bin/python2","mailoney.py","-i","0.0.0.0","-p","25","-s","mailrelay.local","-t","schizo_open_relay"]
|
||||||
|
|
|
@ -20,7 +20,7 @@ services:
|
||||||
- mailoney_local
|
- mailoney_local
|
||||||
ports:
|
ports:
|
||||||
- "25:25"
|
- "25:25"
|
||||||
image: "ghcr.io/telekom-security/mailoney:2006"
|
image: "dtagdevsec/mailoney:2006"
|
||||||
read_only: true
|
read_only: true
|
||||||
volumes:
|
volumes:
|
||||||
- /data/mailoney/log:/opt/mailoney/logs
|
- /data/mailoney/log:/opt/mailoney/logs
|
||||||
|
|
Loading…
Reference in a new issue