You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
399 B

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"]