FROM registry.yandex.net/mail/mail-base-focal:latest
RUN apt-get update && apt-get install -y \
    dnstop \
    dnsutils \
    iputils-ping \
    nmap \
    whois \
    && rm -rf /var/lib/apt/lists/*

RUN mkdir -p /root/.postgresql && \
wget "https://crls.yandex.net/allCAs.pem" -O /root/.postgresql/root.crt && \
chmod 0600 /root/.postgresql/root.crt
