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 EXPOSE 25 EXPOSE 465 EXPOSE 587 CMD [ "startup.sh" ]