diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c1928bb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu:22.04 + +ENV LC_ALL=C.UTF-8 + +RUN apt-get update + +RUN apt-get install -y build-essential git autoconf + +RUN mkdir -p /root/dropbear/ +WORKDIR /root/dropbear/ + +# ./configure --disable-zlib --disable-syslog --enable-static --disable-harden +# make PROGRAMS="dropbear dropbearconvert" + +ENTRYPOINT ["bash"] diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..5ca02c3 --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +docker build -t dropbearbuild -f Dockerfile . + +docker run --rm -t -v $(pwd):/root/dropbear dropbearbuild -c "./configure --disable-zlib --disable-syslog --enable-static --disable-harden && make PROGRAMS=\"dropbear dropbearconvert\"" + +docker image rm dropbearbuild