mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 20:04:02 +00:00
25 lines
856 B
Text
25 lines
856 B
Text
ARG PLATFORM=amd64
|
|
FROM harness/tmate-ssh-server:tmate-client-build AS build
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
RUN set -ex; \
|
|
mkdir -p /src/libssh/build; \
|
|
cd /src; \
|
|
wget -O libssh.tar.xz https://www.libssh.org/files/0.9/libssh-0.9.0.tar.xz; \
|
|
tar -xf libssh.tar.xz -C /src/libssh --strip-components=1; \
|
|
cd /src/libssh/build; \
|
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
|
-DWITH_SFTP=OFF -DWITH_SERVER=OFF -DWITH_PCAP=OFF \
|
|
-DWITH_STATIC_LIB=ON -DWITH_GSSAPI=OFF ..; \
|
|
make -j $(nproc); \
|
|
make install
|
|
|
|
COPY compat ./compat
|
|
COPY *.c *.h autogen.sh Makefile.am configure.ac ./
|
|
|
|
RUN ./autogen.sh && ./configure --enable-static
|
|
RUN make -j $(nproc)
|
|
RUN objcopy --only-keep-debug tmate tmate.symbols && chmod -x tmate.symbols && strip tmate
|
|
RUN ./tmate -V
|