16 lines
399 B
Docker
16 lines
399 B
Docker
FROM ubuntu:20.04
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
RUN apt-get update && apt-get install -y python3-pip
|
|
RUN python3 -m pip install requests aiosmtpd loguru
|
|
RUN apt-get clean
|
|
|
|
COPY smtpd.py /opt/smtpd.py
|
|
|
|
ENV MATRIX_WEBHOOK_URL "https://matrix.sudo.is/_webhook/incoming"
|
|
|
|
WORKDIR /opt
|
|
USER nobody
|
|
|
|
ENTRYPOINT ["python3", "-m", "aiosmtpd", "-n", "-c", "smtpd.WebhookHandler", "-l", "0.0.0.0:8025"]
|