dockerfiles

[ACTIVE] various dockerfiles for projects that don't have them
git clone git://git.figbert.com/dockerfiles.git
Log | Files | Refs | README | LICENSE

commit 848d2a449f6bcbd5086743efc546cd4b14d0ade9
parent 6c81a85111e9cbe4618f71fd9f0fe932e811794b
Author: FIGBERT <figbert@figbert.com>
Date:   Sat, 28 May 2022 19:54:14 -0700

Add crabmail

Diffstat:
MREADME.md | 9+++++++++
Acrabmail | 11+++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -51,3 +51,12 @@ Requirements: - `favicon.png` -> favicon image - `logo.png` -> 32x32 logo - `style.css` -> CSS stylesheet + +## crabmail + +Generates and serves static HTML pages from a maildir using `crabmail`, +`mbsync`, and `nginx`. + +Requirements: +- `mbsync` config file mounted at `/mail/mbsyncrc` +- `crabmail` config file mounted at `/mail/crabmail.conf` diff --git a/crabmail b/crabmail @@ -0,0 +1,11 @@ +FROM rust:alpine AS builder +RUN apk --no-cache add git && \ + git clone git://git.alexwennerberg.com/crabmail && \ + cd /crabmail && cargo build --release + +FROM nginx:alpine +COPY --from=builder /crabmail/target/release/crabmail /usr/bin/ +RUN apk --no-cache add isync && mkdir -p /mail/lists +ENTRYPOINT mbsync -c /mail/mbsyncrc --all && \ + crabmail /mail/lists -c /mail/crabmail.conf -d /usr/share/nginx/html/ && \ + /docker-entrypoint.sh nginx -g 'daemon off;'