uniq
Output the unique lines from the given input or file. Since it does not detect repeated lines unless they are adjacent, we need to sort them first. More information: <https://www.gnu.org/software/coreutils/uniq>.
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 coreutils
RUN apt-get update && \
apt-get install -y coreutils