mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
16 lines
397 B
Docker
16 lines
397 B
Docker
|
#
|
||
|
# Dockerfile for slacker
|
||
|
#
|
||
|
|
||
|
FROM python:3.9-alpine
|
||
|
MAINTAINER EasyPi Software Foundation
|
||
|
|
||
|
RUN set -xe \
|
||
|
&& apk add --no-cache curl \
|
||
|
&& pip install aiosmtpd atpublic pyslack pyyaml requests \
|
||
|
&& cd /usr/local/lib/python3.9/site-packages/ \
|
||
|
&& wget https://github.com/ont/slacker/raw/master/handler.py
|
||
|
|
||
|
EXPOSE 8025
|
||
|
CMD ["aiosmtpd", "-n", "-l", "0.0.0.0:8025", "-c", "handler.MessageHandler"]
|