Create Dockerfile

pull/3915/head
ferryman0608 2024-03-29 23:08:45 +08:00 committed by GitHub
parent fc204bb5e5
commit d489286f7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 26 additions and 0 deletions

26
Dockerfile Normal file
View File

@ -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"]