forked from phin3has/mailoney
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 897 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
git \
build-essential \
autoconf \
libtool \
pkg-config
RUN git clone https://github.com/buffer/libemu.git /opt/libemu \
&& cd /opt/libemu \
&& autoreconf -v -i \
&& ./configure --prefix=/usr \
&& make \
&& make install
ENV LD_LIBRARY_PATH /usr/local/lib
RUN pip3 install git+https://github.com/buffer/pylibemu.git --break-system-packages
WORKDIR /opt/mailoney
COPY . /opt/mailoney
RUN pip3 install -r requirements.txt --break-system-packages
RUN mkdir -p /var/log/mailoney \
&& touch /var/log/mailoney/commands.log \
&& chmod -R 755 /var/log/mailoney
VOLUME /var/log/mailoney
ENTRYPOINT ["/usr/bin/python3", "mailoneyv2.py", "-i", "0.0.0.0", "-p", "25", "-t", "schizo_open_relay", "-logpath", "/var/log/mailoney", "-s", "mailrelay.local", "-D"]