From ruby:2.7

WORKDIR /usr/src/app

COPY ./pinger.rb .

CMD ruby pinger.rb