~martanne/vis

ref: bcde0a768c843049e3c2a4ca32be0ad91e533148 vis/Dockerfile -rw-r--r-- 989 bytes
bcde0a76Marc André Tanner ci: verify coverity scan script before using it 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Run 'make docker' to build a statically linked vis executable!
FROM i386/alpine:3.13
RUN apk update && apk add --upgrade --no-cache \
	acl-dev \
	acl-static \
	ca-certificates \
	fortify-headers \
	gcc \
	libtermkey-dev \
	lua5.3-dev \
	lua5.3-lpeg \
	lua-lpeg-dev \
	make \
	musl-dev \
	ncurses-dev \
	ncurses-static \
	tar \
	wget \
	xz \
	xz-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
# TODO contribute a proper libuntar package to Alpine
RUN mkdir -p /build
WORKDIR /build
RUN wget https://github.com/martanne/libuntar/tarball/7c7247b442b021588f6deba78b60ef3b05ab1e0c -O libuntar.tar.gz && \
	tar xf libuntar.tar.gz && cd *-libuntar-* && \
	make && \
	mkdir -p /usr/local/include && \
	cp lib/libuntar.h /usr/local/include && \
	cp lib/libuntar.a /usr/local/lib && \
	rm -rf /build/*libuntar*
CMD ["/bin/sh"]