Skip to content

Instantly share code, notes, and snippets.

@athoune
Last active September 6, 2016 16:01
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 athoune/44d8ba1f80a2681846464d9b9702a352 to your computer and use it in GitHub Desktop.
Save athoune/44d8ba1f80a2681846464d9b9702a352 to your computer and use it in GitHub Desktop.
tmate-slave Dockerfile on Debian Jessie
FROM debian:jessie
ENV DEVTOOLS git-core build-essential pkg-config libtool libevent-dev \
libncurses-dev zlib1g-dev automake cmake ruby libssl-dev
RUN apt-get update && apt-get install --yes --no-install-recommends $DEVTOOLS \
libssl1.0.0 libevent-2.0-5 libncurses5 &&\
rm -rf /var/lib/apt/lists/* &&\
mkdir -p /src &&\
cd /src &&\
git clone https://git.libssh.org/projects/libssh.git libssh &&\
cd libssh &&\
mkdir build &&\
cd build &&\
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug .. &&\
make && make install &&\
cd /src &&\
git clone https://github.com/msgpack/msgpack-c.git &&\
cd msgpack-c &&\
git checkout cpp-1.4.2 &&\
./bootstrap &&\
./configure &&\
make &&\
make install &&\
cd /src &&\
git clone https://github.com/tmate-io/tmate-slave.git &&\
cd tmate-slave &&\
./autogen.sh &&\
./configure &&\
make &&\
make install &&\
apt-get purge -y --auto-remove $DEVTOOLS &&\
rm -rf /src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment