2021-03-23 13:10:30 +00:00
|
|
|
FROM debian:stretch-slim
|
|
|
|
|
|
|
|
ENV LANG C
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get dist-upgrade -y && \
|
|
|
|
apt-get install -y --no-install-recommends ca-certificates sudo git build-essential automake autoconf clang libssl-dev libpcap-dev libnet1-dev libjson-c-dev iproute2 && \
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
RUN useradd -ms /bin/bash ssldump
|
|
|
|
RUN passwd -d ssldump
|
|
|
|
RUN printf 'ssldump ALL=(ALL) ALL\n' | tee -a /etc/sudoers
|
|
|
|
|
2021-03-23 15:25:04 +00:00
|
|
|
USER ssldump
|
|
|
|
|
2021-03-23 13:10:30 +00:00
|
|
|
RUN cd /home/ssldump && \
|
|
|
|
git clone https://github.com/adulau/ssldump.git build
|
|
|
|
|
|
|
|
RUN cd /home/ssldump/build && \
|
|
|
|
./autogen.sh && \
|
|
|
|
./configure CC=/usr/bin/clang && \
|
|
|
|
make && \
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
WORKDIR "/home/ssldump"
|
|
|
|
|
|
|
|
CMD ["/bin/bash"]
|