docker: Add apub_inbox target

This commit is contained in:
Steffo 2024-12-16 02:28:12 +01:00
parent 5a746dd7b2
commit 0b210c0d1f
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -30,3 +30,12 @@ COPY --from=rdserver_build /usr/src/acrate/target/release/acrate_rdserver /usr/l
ENTRYPOINT ["acrate_rdserver"] ENTRYPOINT ["acrate_rdserver"]
HEALTHCHECK CMD ["curl", "http://127.0.0.1/.healthcheck"] HEALTHCHECK CMD ["curl", "http://127.0.0.1/.healthcheck"]
ENV RUST_LOG="warn,acrate_rdserver=info" ENV RUST_LOG="warn,acrate_rdserver=info"
FROM base_builder AS apub_inbox_build
RUN cargo build --release --package=acrate_apub_inbox --bin=acrate_apub_inbox
FROM base_runner AS apub_inbox
COPY --from=apub_inbox_build /usr/src/acrate/target/release/acrate_apub_inbox /usr/local/bin/acrate_apub_inbox
ENTRYPOINT ["acrate_apub_inbox"]
HEALTHCHECK CMD ["curl", "http://127.0.0.1/.healthcheck"]
ENV RUST_LOG="warn,acrate_apub_inbox=info"