mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-07 15:48:51 +00:00
tweaking
This commit is contained in:
parent
48b8915689
commit
eb55ad5870
2 changed files with 14 additions and 15 deletions
|
@ -1,20 +1,18 @@
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk -U upgrade && \
|
RUN apk -U --no-cache add \
|
||||||
apk add autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash \
|
|
||||||
build-base \
|
build-base \
|
||||||
git \
|
git \
|
||||||
libtool \
|
libtool \
|
||||||
procps \
|
|
||||||
py-pip \
|
py-pip \
|
||||||
python \
|
python \
|
||||||
python-dev && \
|
python-dev && \
|
||||||
|
|
||||||
# Install libemu
|
# Install libemu
|
||||||
git clone https://github.com/buffer/libemu /root/libemu/ && \
|
git clone --depth=1 https://github.com/buffer/libemu /root/libemu/ && \
|
||||||
cd /root/libemu/ && \
|
cd /root/libemu/ && \
|
||||||
autoreconf -vi && \
|
autoreconf -vi && \
|
||||||
./configure && \
|
./configure && \
|
||||||
|
@ -22,23 +20,24 @@ RUN apk -U upgrade && \
|
||||||
make install && \
|
make install && \
|
||||||
|
|
||||||
# Install libemu python wrapper
|
# Install libemu python wrapper
|
||||||
pip install pylibemu && \
|
pip install --no-cache-dir --upgrade pip && \
|
||||||
|
pip install --no-cache-dir pylibemu && \
|
||||||
|
|
||||||
# Install mailoney from git
|
# Install mailoney from git
|
||||||
git clone 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/bash -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 && \
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
apk del autoconf \
|
apk del --purge autoconf \
|
||||||
automake \
|
automake \
|
||||||
build-base \
|
build-base \
|
||||||
git \
|
git \
|
||||||
py-pip \
|
py-pip \
|
||||||
python-dev && \
|
python-dev && \
|
||||||
rm -rf /root/* && \
|
rm -rf /root/* && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
version: '2.2'
|
version: '2.3'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
mailoney_local:
|
mailoney_local:
|
||||||
|
|
Loading…
Reference in a new issue