mirror of https://github.com/tmux/tmux.git
Create Dockerfile
parent
fc204bb5e5
commit
d489286f7a
|
@ -0,0 +1,26 @@
|
|||
# Use the official Debian base image
|
||||
FROM debian:bullseye
|
||||
# Set noninteractive mode for Debian package installations
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
# Set the working directory
|
||||
WORKDIR /tmux
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
automake \
|
||||
build-essential \
|
||||
pkg-config \
|
||||
libevent-dev \
|
||||
libncurses5-dev \
|
||||
bison
|
||||
# Clone the tmux repository and checkout version 3.4
|
||||
RUN git clone https://github.com/tmux/tmux.git . && git checkout 3.4
|
||||
# Generate the configure script
|
||||
RUN sh autogen.sh
|
||||
# Configure and build tmux
|
||||
RUN ./configure && make
|
||||
# Install tmux
|
||||
RUN make install
|
||||
# Set the default command to run tmux
|
||||
|
||||
CMD ["/bin/bash"]
|
Loading…
Reference in New Issue