aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2017-05-30 23:23:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-05-31 15:37:25 +0200
commit7d88cb3c1392393c2910f2f96c93549bb5482f9f (patch)
tree55cd50da43661732c3d94cdafcc801ae8e4b4349 /Dockerfile
parent6a7802cd15d6921951cd4940229f038e631d7473 (diff)
downloadvis-7d88cb3c1392393c2910f2f96c93549bb5482f9f.tar.gz
vis-7d88cb3c1392393c2910f2f96c93549bb5482f9f.tar.xz
build: allow to build self-contained executable
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index a9d3805..105fd6b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,10 +4,12 @@
# ./configure CC='cc --static'
# make
# docker cp vis:/tmp/vis/vis .
+# make vis-single
+# docker cp vis:/tmp/vis/vis-single .
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 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 libarchive-dev xz-dev xz bzip2-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