Skip to content

Instantly share code, notes, and snippets.

@bongole
Created July 15, 2020 07:50
Show Gist options
  • Save bongole/d793194ff6e3d3f71e29b1dd24f06734 to your computer and use it in GitHub Desktop.
Save bongole/d793194ff6e3d3f71e29b1dd24f06734 to your computer and use it in GitHub Desktop.
sslsplit for raspi4
FROM arm64v8/ubuntu:20.04 as builder
RUN apt-get update \
&& apt-get install -y pkg-config openssl libz-dev libssl-dev libevent-dev libpcap-dev libnet1-dev \
libc-dev linux-headers-5.4.0-1013-raspi gcc make git-core --no-install-recommends
COPY . /opt/sslsplit
WORKDIR /opt/sslsplit
ENV TCPPFLAGS -DDOCKER
RUN export SOURCE_DATE_EPOCH=$(stat -c '%Y' *.c *.h|sort -r|head -1); \
make clean && make -j$(nproc) all
FROM arm64v8/ubuntu:20.04 as production
RUN apt-get update \
&& apt-get install -y openssl libz3-4 libssl1.1 libevent-2.1-7 libevent-openssl-2.1-7 libevent-core-2.1-7 libevent-pthreads-2.1-7 libpcap0.8 libnet1 --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /root/
COPY --from=builder /opt/sslsplit/sslsplit /usr/local/bin/sslsplit
#EXPOSE 80 443
#ENTRYPOINT [ "sslsplit" ]
#CMD [ "-V" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment