FROM alpine:latest RUN apk --no-cache add postfix bash openssl COPY startup.sh /usr/bin/startup.sh RUN chmod +x /usr/bin/startup.sh COPY main.cf /etc/postfix/main.cf COPY virtual /etc/postfix/virtual COPY vmailbox /etc/postfix/vmailbox EXPOSE 25 EXPOSE 465 EXPOSE 587 CMD [ "startup.sh" ]