Docker healthcheck
This commit is contained in:
parent
9dfc080bd9
commit
511848b406
1 changed files with 4 additions and 1 deletions
|
|
@ -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"]
|
||||
Loading…
Reference in a new issue