webmention-filer/Dockerfile

19 lines
353 B
Docker

FROM rust:1.69-alpine
RUN mkdir webmention-filer
COPY src webmention-filer/src
COPY Cargo.toml webmention-filer/Cargo.toml
WORKDIR webmention-filer
RUN cargo build --release
FROM alpine
COPY --from=0 /webmention-filer/target/release/webmention-filer /usr/bin/
RUN apk add mailx
USER 1000:1000
EXPOSE 8000
ENTRYPOINT ["/usr/bin/webmention-filer"]