17 lines
448 B
Docker
17 lines
448 B
Docker
FROM alpine:3.21
|
|
|
|
RUN apk add --no-cache postfix bash
|
|
|
|
COPY ../share/users.txt /tmp/users.txt
|
|
COPY ../share/postfix.sh /tmp/postfix.sh
|
|
COPY postfix/main.cf /etc/postfix/main.cf
|
|
COPY postfix/entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /tmp/postfix.sh /entrypoint.sh && \
|
|
/tmp/postfix.sh > /etc/postfix/virtual_mailbox && \
|
|
postmap /etc/postfix/virtual_mailbox && \
|
|
rm /tmp/users.txt /tmp/postfix.sh
|
|
|
|
EXPOSE 25 587
|
|
|
|
CMD ["/entrypoint.sh"]
|