From 6a7802cd15d6921951cd4940229f038e631d7473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 30 May 2017 20:28:28 +0200 Subject: build: add Dockerfile for static builds from Alpine Signed-off-by: Christian Hesse --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a9d3805 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# docker build -t vis . +# docker run -it --name vis vis +# docker cp . vis:/tmp/vis +# ./configure CC='cc --static' +# make +# docker cp vis:/tmp/vis/vis . +FROM alpine:edge +ENV DIR /tmp/vis +WORKDIR $DIR +RUN apk update && apk add musl-dev fortify-headers gcc make libtermkey-dev ncurses-dev ncurses-static lua5.3-dev lua5.3-lpeg lua-lpeg-dev acl-dev +RUN sed -i 's/Libs: /Libs: -L${INSTALL_CMOD} /' /usr/lib/pkgconfig/lua5.3.pc +RUN mv /usr/lib/lua/5.3/lpeg.a /usr/lib/lua/5.3/liblpeg.a +RUN sed -i 's/-ltermkey/-ltermkey -lunibilium/' /usr/lib/pkgconfig/termkey.pc +CMD ["/bin/sh"] -- cgit v1.2.3