ssldump/docker/debian-distros/Dockerfile

33 lines
812 B
Text
Raw Normal View History

2023-08-14 13:20:01 +00:00
#FROM debian:bookworm-slim
#FROM debian:bullseye-slim
#FROM debian:buster-slim
FROM ubuntu:jammy
#FROM ubuntu:focal
2021-03-23 13:10:30 +00:00
ENV LANG C
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get dist-upgrade -y && \
2023-08-14 13:20:01 +00:00
apt-get install -y --no-install-recommends ca-certificates sudo git build-essential cmake ninja-build clang libssl-dev libpcap-dev libnet1-dev libjson-c-dev iproute2 && \
2021-03-23 13:10:30 +00:00
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 && \
2023-08-14 13:20:01 +00:00
git clone https://github.com/adulau/ssldump.git ssldump-build
2021-03-23 13:10:30 +00:00
2023-08-14 13:20:01 +00:00
RUN cd /home/ssldump/ssldump-build && \
cmake -G Ninja -B build && \
ninja -C build && \
sudo ninja -C build install
2021-03-23 13:10:30 +00:00
WORKDIR "/home/ssldump"
CMD ["/bin/bash"]