Created
July 17, 2019 04:53
-
-
Save tiann/4739bf13c898772e66318e88a6472373 to your computer and use it in GitHub Desktop.
Dockerfile to build lnav
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ubuntu:16.04 | |
RUN apt-get update && apt-get install -y git \ | |
autoconf \ | |
automake \ | |
make \ | |
gcc-5 \ | |
g++-5 \ | |
libgpm-dev \ | |
zlib1g-dev \ | |
ncurses-dev \ | |
libpcre3 \ | |
libpcre3-dev \ | |
libreadline-dev \ | |
sqlite3 \ | |
libsqlite3-dev \ | |
libncursesw5-dev | |
ENV CXX g++-5 | |
ENV CC gcc-5 | |
RUN git clone https://github.com/tstack/lnav --depth=1 && cd lnav && ./autogen.sh && ./configure LDFLAGS="-static-libstdc++ -static-libgcc" &&CXX="g++-5" CC="gcc-5" make -j8 && strip src/lnav | |
ENTRYPOINT cat lnav/src/lnav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
docker build -t lnav . && docker run -it lnav > lnav && docker rmi lnav