21 lines
446 B
Docker
21 lines
446 B
Docker
FROM rust:1.71-alpine
|
|
|
|
RUN mkdir webmention-filer
|
|
COPY src webmention-filer/src
|
|
COPY Cargo.toml webmention-filer/Cargo.toml
|
|
|
|
WORKDIR webmention-filer
|
|
RUN apk add musl-dev openssl-dev
|
|
RUN cargo build --release
|
|
|
|
FROM alpine
|
|
|
|
COPY --from=0 /webmention-filer/target/release/webmention-filer /usr/bin/
|
|
COPY send-daily-mail.sh send-daily-mail.sh
|
|
|
|
RUN apk add mailx
|
|
|
|
USER 1000:1000
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT ["/usr/bin/webmention-filer", "-d", "$DOMAIN"]
|