1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Merge pull request #43 from varac/libssh-0.7.6

Dockerfile improvements
This commit is contained in:
Nicolas Viennot 2018-10-17 14:32:27 +02:00 committed by GitHub
commit 3c22f38db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,9 +20,11 @@ RUN apt-get install -y git build-essential automake cmake pkg-config libssl-dev
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /src && cd /src/ &&\
git clone git://git.libssh.org/projects/libssh.git &&\
# Latest libssh requires cmake >= 3.3.0 which is not available in jessie.
# jessie-backports provides 3.6.2 but this pulls too many dependencies in.
git clone -b libssh-0.7.6 git://git.libssh.org/projects/libssh.git &&\
git clone https://github.com/msgpack/msgpack-c.git &&\
git clone https://github.com/digitalautonomy/tmate-slave.git
git clone https://github.com/tmate-io/tmate-slave.git
RUN cd /src/libssh &&\
mkdir build && cd build && cmake .. && make install
@ -50,4 +52,8 @@ RUN cd /src/tmate-slave &&\
RUN cp /src/tmate-slave/tmate-slave /sbin/
# Clean up
RUN rm -rf /src
RUN apt-get --auto-remove purge -y git build-essential automake cmake pkg-config libssl-dev zlib1g-dev libncurses5-dev
ENV LD_LIBRARY_PATH=/usr/local/lib