Initial commit
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
FROM alpine:3.13
|
||||
|
||||
RUN apk update && \
|
||||
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
|
||||
postfix postfix-pgsql && \
|
||||
rm -rf /var/cache/apk/* && \
|
||||
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
|
||||
touch /etc/postfix/pgsql-relay-domains.cf && \
|
||||
touch /etc/postfix/pgsql-transport-maps.cf && \
|
||||
echo 'maillog_file = /dev/stdout' >> /etc/postfix/main.cf && \
|
||||
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
|
||||
|
||||
RUN mkdir /config
|
||||
|
||||
COPY run.sh /
|
||||
RUN chmod +x /run.sh
|
||||
RUN newaliases
|
||||
|
||||
EXPOSE 25
|
||||
#ENTRYPOINT ["/run.sh"]
|
||||
CMD ["/run.sh"]
|
||||
Reference in New Issue
Block a user