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"]