yes
Output something repeatedly. This command is commonly used to answer yes to every prompt by install commands (such as apt-get). More information: <https://www.gnu.org/software/coreutils/yes>.
RUN apt-get update && \
apt-get install -y coreutils
RUN apt-get update && \
apt-get install -y coreutils
RUN apk add coreutils
RUN pacman -S --noconfirm coreutils
RUN apt-get update && \
apt-get install -y coreutils
RUN yum install -y coreutils
RUN dnf install -y yes
RUN apt-get update && \
apt-get install -y coreutils