mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Add build static release inside container
This commit is contained in:
parent
9defeb477a
commit
31e3a973c1
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
7
build.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user