mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Switch to Alpine:3.17.1 base docker for build. Build single multi file
This commit is contained in:
parent
31e3a973c1
commit
78576360f6
17
Dockerfile
17
Dockerfile
@ -1,15 +1,14 @@
|
||||
FROM ubuntu:22.04
|
||||
FROM alpine:3.17.1 AS builder
|
||||
|
||||
ENV LC_ALL=C.UTF-8
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install -y build-essential git autoconf
|
||||
RUN apk add --no-cache alpine-sdk
|
||||
RUN apk add --no-cache \
|
||||
musl-dev \
|
||||
zlib-dev \
|
||||
tar \
|
||||
bzip2 \
|
||||
bash
|
||||
|
||||
RUN mkdir -p /root/dropbear/
|
||||
WORKDIR /root/dropbear/
|
||||
|
||||
# ./configure --disable-zlib --disable-syslog --enable-static --disable-harden
|
||||
# make PROGRAMS="dropbear dropbearconvert"
|
||||
|
||||
ENTRYPOINT ["bash"]
|
||||
|
2
build.sh
2
build.sh
@ -2,6 +2,6 @@
|
||||
|
||||
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 run --rm -t -v $(pwd):/root/dropbear dropbearbuild -c "./configure --disable-utmp --disable-wtmp --disable-lastlog --disable-zlib --disable-syslog --enable-static --disable-harden && make clean && make -j4 MULTI=1 PROGRAMS=\"dropbear dropbearconvert dropbearkey\""
|
||||
|
||||
docker image rm dropbearbuild
|
||||
|
Loading…
Reference in New Issue
Block a user