diff --git a/Dockerfile b/Dockerfile index 7a9dbd5..19776ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ FROM public.ecr.aws/docker/library/eclipse-temurin:20.0.2_9-jre AS runner LABEL authors="skydust" WORKDIR /app +RUN apt update && apt install -y zabbix-sender && rm -rf /var/lib/apt/lists/* + COPY --from=builder /app/build/libs/JdrBot-all.jar /app/JdrBot.jar COPY start.sh /app diff --git a/start.sh b/start.sh index e70bd1f..bc9adca 100644 --- a/start.sh +++ b/start.sh @@ -1,2 +1,2 @@ #!/bin/bash -java -jar JdrBot.jar \ No newline at end of file +java -jar JdrBot.jar --heartbeat "zabbix_sender -z 192.168.1.36 -s \"zabbix-monitoring\" -k discordBots.jdrbot.ping -o {ping}" \ No newline at end of file