Add build static release inside container

This commit is contained in:
allegroai 2023-02-08 16:58:34 +02:00
parent 9defeb477a
commit 31e3a973c1
2 changed files with 22 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -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"]

7
build.sh Executable file
View File

@ -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