~fincham/static-binary-zoo

ref: e79e3898beb4586fb1a60be3f747649c0b38029e static-binary-zoo/Dockerfile.readline-8.1 -rw-r--r-- 606 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
21
22
ARG MUSL_TARGET=x86_64-linux-musl
FROM ncurses-6.2-${MUSL_TARGET} AS ncurses
FROM musl-cross-make-$MUSL_TARGET
ARG MUSL_TARGET

COPY --from=ncurses /output /output

WORKDIR /build
RUN download ftp://ftp.cwru.edu/pub/bash/readline-8.1.tar.gz source.tar.gz f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02 && tar xf source.tar.gz
RUN export PATH=/build/cross/bin:$PATH && \
cd readline-* && \
CC="$MUSL_TARGET-gcc" \
./configure \
--prefix=/output \
--with-curses \
--host=$($MUSL_TARGET-gcc -dumpmachine) \
--enable-static \
--disable-shared && \
make -j$(nproc) && \
make install

CMD bash