Skip to content

Instantly share code, notes, and snippets.

@spacelatte
Created May 28, 2019 15:59
Show Gist options
  • Save spacelatte/30498d478694f56f3a70f8de760325f6 to your computer and use it in GitHub Desktop.
Save spacelatte/30498d478694f56f3a70f8de760325f6 to your computer and use it in GitHub Desktop.
i need to update actual static-docker repo but too lazy for that for now
#!/usr/bin/env docker build --compress -t pvtmert/tmux:static -f
FROM debian:stable
ENV CC clang
ENV DIR tmux-repo
ENV REPO https://github.com/tmux/tmux.git
#VOLUME /data
WORKDIR /data
RUN apt update && apt install -y bison automake build-essential clang libevent-dev git pkg-config libncurses5-dev
RUN git clone -q --progress --depth 1 $REPO $DIR
RUN (cd $DIR; bash autogen.sh) && $DIR/configure --enable-static
CMD make -C . -j $(nproc) && ./tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment