tmux-tmux
SUCCESS
2m 46s
History Source
SummaryIterations1Transcript4Dockerfile
Dockerfile36 lines · 731 chars
FROM ubuntu:22.04

# Build tmux from source in a clean Debian/Ubuntu image.
# Install required build tools and dependencies (libevent, ncurses, etc.).
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
  build-essential \
  autoconf \
  automake \
  libtool \
  pkg-config \
  bison \
  flex \
  m4 \
  gettext \
  libevent-dev \
  libncurses-dev \
  libutempter-dev \
  ca-certificates \
  git \
  && rm -rf /var/lib/apt/lists/*

# Copy source and build from source
WORKDIR /tmux
COPY . /tmux

# Prepare and build
RUN sh autogen.sh && \
    ./configure && \
    make -j"$(nproc)" && \
    make install

# Expose default entrypoint to run tmux
ENTRYPOINT ["/usr/local/bin/tmux"]