From 3b25d73c6b669da3799dfe1fa9a05c02d3c5f8f8 Mon Sep 17 00:00:00 2001 From: James Pattinson Date: Wed, 19 Feb 2025 21:11:59 +0000 Subject: [PATCH] Add ping binary --- Dockerfile | 1 + docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 46127bc..5627d45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM python:latest WORKDIR /usr/local/bin COPY pinger.py . +RUN apt-get update -y && apt-get install -y iputils-ping CMD ["python","-u","pinger.py"] diff --git a/docker-compose.yaml b/docker-compose.yaml index 2763460..68f45ef 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,7 @@ version: '3.8' services: - meshmqtt: + pinger: restart: unless-stopped build: context: .