forked from tsl0922/ttyd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (36 loc) · 890 Bytes
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
FROM ubuntu:16.04
LABEL maintainer "Shuanglei Tao - tsl0922@gmail.com"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
cmake \
curl \
g++ \
git \
libjson-c2 \
libjson-c-dev \
libssl1.0.0 \
libssl-dev \
libwebsockets7 \
libwebsockets-dev \
pkg-config \
vim-common \
&& git clone --depth=1 https://github.com/tsl0922/ttyd.git /tmp/ttyd \
&& cd /tmp/ttyd && mkdir build && cd build \
&& cmake .. \
&& make \
&& make install \
&& apt-get remove -y --purge \
cmake \
g++ \
libwebsockets-dev \
libjson-c-dev \
libssl-dev \
pkg-config \
&& apt-get purge -y \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/ttyd
EXPOSE 7681
ENTRYPOINT ["ttyd"]
CMD ["bash"]