Skip to content

Instantly share code, notes, and snippets.

@tiann
Created July 17, 2019 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiann/4739bf13c898772e66318e88a6472373 to your computer and use it in GitHub Desktop.
Save tiann/4739bf13c898772e66318e88a6472373 to your computer and use it in GitHub Desktop.
Dockerfile to build lnav
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
@tiann
Copy link
Author

tiann commented Jul 17, 2019

Usage: docker build -t lnav . && docker run -it lnav > lnav && docker rmi lnav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment