forked from tmate-io/tmate-ssh-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
31 lines (24 loc) · 898 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM alpine:3.9
RUN apk add --no-cache msgpack-c ncurses-libs libevent libexecinfo openssl zlib
RUN set -ex; \
apk add --no-cache --virtual .build-deps \
git wget cmake make gcc g++ linux-headers zlib-dev openssl-dev \
automake autoconf libevent-dev ncurses-dev msgpack-c-dev libexecinfo-dev; \
\
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 ..; \
make -j "$(nproc)"; \
make install
WORKDIR /src/tmate-ssh-server
COPY . .
RUN set -ex; \
./autogen.sh; \
./configure --prefix=/usr CFLAGS="-D_GNU_SOURCE"; \
make -j "$(nproc)"; \
ln -s /src/tmate-ssh-server/tmate-ssh-server /usr/bin
COPY docker-entrypoint.sh /usr/local/bin
ENTRYPOINT ["docker-entrypoint.sh"]