2023-08-24 18:23:02 +02:00
|
|
|
FROM rust:1.71-alpine
|
2023-08-24 17:58:27 +02:00
|
|
|
|
|
|
|
RUN mkdir webmention-filer
|
|
|
|
COPY src webmention-filer/src
|
|
|
|
COPY Cargo.toml webmention-filer/Cargo.toml
|
|
|
|
|
|
|
|
WORKDIR webmention-filer
|
2023-08-24 22:54:45 +02:00
|
|
|
RUN apk add musl-dev openssl-dev
|
2023-08-24 17:58:27 +02:00
|
|
|
RUN cargo build --release
|
|
|
|
|
|
|
|
FROM alpine
|
|
|
|
|
2023-08-24 18:01:55 +02:00
|
|
|
COPY --from=0 /webmention-filer/target/release/webmention-filer /usr/bin/
|
2023-08-24 18:07:31 +02:00
|
|
|
COPY send-daily-mail.sh send-daily-mail.sh
|
2023-08-24 17:58:27 +02:00
|
|
|
|
|
|
|
RUN apk add mailx
|
|
|
|
|
|
|
|
USER 1000:1000
|
|
|
|
EXPOSE 8000
|
|
|
|
|
2023-08-24 22:56:31 +02:00
|
|
|
ENTRYPOINT ["/usr/bin/webmention-filer", "-d", "$DOMAIN"]
|