Docker healthcheck

This commit is contained in:
aceberg 2023-06-30 21:51:15 +07:00
parent 9dfc080bd9
commit 511848b406

View file

@ -9,9 +9,12 @@ FROM alpine
WORKDIR /app
RUN apk add --no-cache tzdata arp-scan \
RUN apk add --no-cache arp-scan curl tzdata \
&& mkdir /data
COPY --from=builder /WatchYourLAN /app/
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost:8840 || exit 1
ENTRYPOINT ["./WatchYourLAN"]