~fincham/static-binary-zoo

ref: e79e3898beb4586fb1a60be3f747649c0b38029e static-binary-zoo/Dockerfile.ncurses-6.2 -rw-r--r-- 565 bytes
e79e3898 — Michael Fincham Spelling 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ARG MUSL_TARGET=x86_64-linux-musl
FROM musl-cross-make-$MUSL_TARGET
ARG MUSL_TARGET

WORKDIR /build
RUN download https://invisible-mirror.net/archives/ncurses/ncurses-6.2.tar.gz source.tar.gz 30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d && tar xf source.tar.gz
RUN export PATH=/build/cross/bin:$PATH && \
cd ncurses-* && \
CC="$MUSL_TARGET-gcc" \
./configure \
--prefix=/output \
--host=$($MUSL_TARGET-gcc -dumpmachine) \
--disable-stripping \
--enable-static \
--with-normal \ 
--disable-shared && \
make -j$(nproc) && \
make install

CMD bash