Last active
September 6, 2016 16:01
-
-
Save athoune/44d8ba1f80a2681846464d9b9702a352 to your computer and use it in GitHub Desktop.
tmate-slave Dockerfile on Debian Jessie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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