mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
prep mailoney rebuild
This commit is contained in:
parent
42c57636b9
commit
08ff1377fd
1 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
#
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk -U --no-cache add \
|
RUN apk -U --no-cache add \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
@ -11,7 +11,7 @@ RUN apk -U --no-cache add \
|
||||||
py-pip \
|
py-pip \
|
||||||
python \
|
python \
|
||||||
python-dev && \
|
python-dev && \
|
||||||
|
#
|
||||||
# Install libemu
|
# Install libemu
|
||||||
git clone --depth=1 https://github.com/buffer/libemu /root/libemu/ && \
|
git clone --depth=1 https://github.com/buffer/libemu /root/libemu/ && \
|
||||||
cd /root/libemu/ && \
|
cd /root/libemu/ && \
|
||||||
|
@ -19,22 +19,22 @@ RUN apk -U --no-cache add \
|
||||||
./configure && \
|
./configure && \
|
||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
|
#
|
||||||
# Install libemu python wrapper
|
# Install libemu python wrapper
|
||||||
pip install --no-cache-dir --upgrade pip && \
|
pip install --no-cache-dir --upgrade pip && \
|
||||||
pip install --no-cache-dir \
|
pip install --no-cache-dir \
|
||||||
hpfeeds \
|
hpfeeds \
|
||||||
pylibemu && \
|
pylibemu && \
|
||||||
|
#
|
||||||
# Install mailoney from git
|
# Install mailoney from git
|
||||||
git clone --depth=1 https://github.com/awhitehatter/mailoney /opt/mailoney && \
|
git clone --depth=1 https://github.com/awhitehatter/mailoney /opt/mailoney && \
|
||||||
|
#
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
addgroup -g 2000 mailoney && \
|
addgroup -g 2000 mailoney && \
|
||||||
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 mailoney && \
|
adduser -S -H -s /bin/ash -u 2000 -D -g 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 \
|
apk del --purge autoconf \
|
||||||
automake \
|
automake \
|
||||||
|
@ -44,7 +44,7 @@ RUN apk -U --no-cache add \
|
||||||
python-dev && \
|
python-dev && \
|
||||||
rm -rf /root/* && \
|
rm -rf /root/* && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
#
|
||||||
# Set workdir and start mailoney
|
# Set workdir and start mailoney
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
USER mailoney:mailoney
|
USER mailoney:mailoney
|
||||||
|
|
Loading…
Reference in a new issue