test: update
[vis.git] / Dockerfile
blobcd2a89fb540040b82eec8f8127874f08c25b3693
1 # Run 'make docker' to build a statically linked vis executable!
2 FROM i386/alpine:3.13
3 RUN apk update && apk add --upgrade --no-cache \
4         acl-dev \
5         acl-static \
6         ca-certificates \
7         fortify-headers \
8         gcc \
9         libtermkey-dev \
10         lua5.3-dev \
11         lua5.3-lpeg \
12         lua-lpeg-dev \
13         make \
14         musl-dev \
15         ncurses-dev \
16         ncurses-static \
17         tar \
18         wget \
19         xz \
20         xz-dev
21 RUN sed -i 's/Libs: /Libs: -L${INSTALL_CMOD} /' /usr/lib/pkgconfig/lua5.3.pc
22 RUN mv /usr/lib/lua/5.3/lpeg.a /usr/lib/lua/5.3/liblpeg.a
23 RUN sed -i 's/-ltermkey/-ltermkey -lunibilium/' /usr/lib/pkgconfig/termkey.pc
24 # TODO contribute a proper libuntar package to Alpine
25 RUN mkdir -p /build
26 WORKDIR /build
27 RUN wget https://github.com/martanne/libuntar/tarball/7c7247b442b021588f6deba78b60ef3b05ab1e0c -O libuntar.tar.gz && \
28         tar xf libuntar.tar.gz && cd *-libuntar-* && \
29         make && \
30         mkdir -p /usr/local/include && \
31         cp lib/libuntar.h /usr/local/include && \
32         cp lib/libuntar.a /usr/local/lib && \
33         rm -rf /build/*libuntar*
34 CMD ["/bin/sh"]