ARG BASE_IMAGE="nginx" FROM ${BASE_IMAGE} # Install ping and ip RUN apt update && \ apt install -y iproute2 iputils-ping # Copy entrypoint COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh RUN chmod +x /usr/local/bin/docker-entrypoint.sh # Execute entrypoint ENTRYPOINT [ "docker-entrypoint.sh" ] CMD [ "app" ]