mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +00:00
Bump Mailoney to Alpine 3.15, reduced to Mailoney Code, no PyPi
This commit is contained in:
parent
602d1cc673
commit
2586e10285
1 changed files with 3 additions and 29 deletions
|
@ -1,35 +1,14 @@
|
||||||
FROM alpine:3.11
|
FROM alpine:3.15
|
||||||
#
|
#
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk -U --no-cache add \
|
RUN apk -U --no-cache add \
|
||||||
autoconf \
|
|
||||||
automake \
|
|
||||||
build-base \
|
|
||||||
git \
|
git \
|
||||||
libcap \
|
libcap \
|
||||||
libtool \
|
python2 && \
|
||||||
py-pip \
|
|
||||||
python \
|
|
||||||
python-dev && \
|
|
||||||
#
|
|
||||||
# Install libemu
|
|
||||||
git clone https://github.com/buffer/libemu /root/libemu/ && \
|
|
||||||
cd /root/libemu/ && \
|
|
||||||
git checkout e2624361e13588da74a2ce3e1dea0abb59dcf1d0 && \
|
|
||||||
autoreconf -vi && \
|
|
||||||
./configure && \
|
|
||||||
make && \
|
|
||||||
make install && \
|
|
||||||
#
|
|
||||||
# Install libemu python wrapper
|
|
||||||
pip install --no-cache-dir \
|
|
||||||
hpfeeds \
|
|
||||||
pylibemu && \
|
|
||||||
#
|
#
|
||||||
# Install mailoney from git
|
# Install mailoney from git
|
||||||
git clone https://github.com/t3chn0m4g3/mailoney /opt/mailoney && \
|
git clone https://github.com/t3chn0m4g3/mailoney /opt/mailoney && \
|
||||||
cd /opt/mailoney && \
|
cd /opt/mailoney && \
|
||||||
git checkout 85c37649a99e1cec3f8d48d509653c9a8127ea4f && \
|
|
||||||
#
|
#
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
addgroup -g 2000 mailoney && \
|
addgroup -g 2000 mailoney && \
|
||||||
|
@ -38,12 +17,7 @@ RUN apk -U --no-cache add \
|
||||||
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 \
|
apk del --purge git && \
|
||||||
automake \
|
|
||||||
build-base \
|
|
||||||
git \
|
|
||||||
py-pip \
|
|
||||||
python-dev && \
|
|
||||||
rm -rf /root/* && \
|
rm -rf /root/* && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue