# FROM alpine:3 # FROM bash:latest FROM ros:noetic RUN apt update && apt install -y jq iputils-ping nano RUN sed -e '/set -e/ s/^#*/#/' -i ros_entrypoint.sh COPY ping.sh / # health check runs grep command every 10 seconds and registers container as unhealthy if it takes longer than 3 seconds or ping is not running # HEALTHCHECK --interval=10s --timeout=3s --start-period=5s \ # CMD ps aux | grep '[s]h ping' || exit 1