aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-05-30 20:28:28 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-05-31 15:37:25 +0200
commit6a7802cd15d6921951cd4940229f038e631d7473 (patch)
tree40a9a33c4cbd977ffa7df6f27299a40e44551fa2 /Dockerfile
parentf5f5c3f8f5bc0b7ce43c5ea64ff42dda80356a6e (diff)
downloadvis-6a7802cd15d6921951cd4940229f038e631d7473.tar.gz
vis-6a7802cd15d6921951cd4940229f038e631d7473.tar.xz
build: add Dockerfile for static builds from Alpine
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 14 insertions, 0 deletions
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"]