FROM ubuntu:18.04
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"

# hadolint ignore=DL3008,SC3009,SC2086,DL3009
RUN export DEBIAN_FRONTEND=noninteractive && \
    export RUNTIME_PACKAGES=sslscan && \
    apt-get -qq update && \
    apt-get -qq --no-install-recommends --yes install ${RUNTIME_PACKAGES} && \
    apt-get -qq --yes autoremove --purge && \
    apt-get -qq --yes clean all && \
    rm -rf /usr/share/doc/* \
           /usr/src/* \
           /var/cache/* \
           /var/lib/apt/lists/* \
           /var/log/apt \
           /var/log/dpkg.log \
           /tmp/*

ENTRYPOINT [ "/usr/bin/sslscan" ]
CMD [ "--help" ]