-
Notifications
You must be signed in to change notification settings - Fork 261
/
Dockerfile
35 lines (35 loc) · 1002 Bytes
/
Dockerfile
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
35
# Run 'make docker' to build a statically linked vis executable!
FROM i386/alpine:3.20
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 \
xz-static
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"]