1 # docker build -t vis .
2 # docker run -it --name vis vis
3 # docker cp . vis:/tmp/vis
4 # ./configure CC='cc --static'
6 # docker cp vis:/tmp/vis/vis .
8 # docker cp vis:/tmp/vis/vis-single .
12 RUN apk update && apk add musl-dev fortify-headers gcc make libtermkey-dev \
13 ncurses-dev ncurses-static lua5.3-dev lua5.3-lpeg lua-lpeg-dev \
14 acl-static acl-dev xz-dev tar xz wget ca-certificates
15 RUN sed -i 's/Libs: /Libs: -L${INSTALL_CMOD} /' /usr/lib/pkgconfig/lua5.3.pc
16 RUN mv /usr/lib/lua/5.3/lpeg.a /usr/lib/lua/5.3/liblpeg.a
17 RUN sed -i 's/-ltermkey/-ltermkey -lunibilium/' /usr/lib/pkgconfig/termkey.pc
18 # TODO contribute a proper libuntar package to Alpine
19 RUN wget https://github.com/martanne/libuntar/tarball/7c7247b442b021588f6deba78b60ef3b05ab1e0c -O libuntar.tar.gz && \
20 tar xf libuntar.tar.gz && cd *-libuntar-* && \
22 mkdir -p /usr/local/include && \
23 cp lib/libuntar.h /usr/local/include && \
24 cp lib/libuntar.a /usr/local/lib