add docker stopsignal + cmd

This commit is contained in:
Dmitry Belyaev 2024-09-12 20:43:58 +03:00
parent 2a51098daf
commit 2687ae5457
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -14,4 +14,6 @@ RUN cargo build --release
FROM debian:12-slim AS runtime
WORKDIR /app
COPY --from=builder /app/target/release/doctor-restart /usr/local/bin
ENTRYPOINT ["/usr/local/bin/doctor-restart"]
STOPSIGNAL SIGINT
ENTRYPOINT ["/usr/local/bin/doctor-restart"]
CMD ["-l", "auto-restart.unhealthy", "-i", "10s", "-u", "35s"]