crabmail (494B)
1 FROM rust:alpine AS builder 2 RUN apk --no-cache add git && \ 3 git clone git://git.alexwennerberg.com/crabmail && \ 4 cd /crabmail && cargo build --release 5 6 FROM nginx:alpine 7 COPY --from=builder /crabmail/target/release/crabmail /usr/bin/ 8 RUN apk --no-cache add isync && mkdir -p /mail/lists 9 EXPOSE 80 10 ENTRYPOINT mbsync -c /mail/mbsyncrc --all && \ 11 crabmail /mail/lists -c /mail/crabmail.conf -d /usr/share/nginx/html/ && \ 12 /docker-entrypoint.sh nginx -g 'daemon off;'