From: Shuanglei Tao Date: Sat, 17 Sep 2016 03:59:32 +0000 (+0800) Subject: [ci skip] Add Dockerfile X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=2f2da93c16daf51bb4d14e22b5aadf9ff276becb;p=ttyd.git [ci skip] Add Dockerfile --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c609f1e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:16.04 +MAINTAINER Shuanglei Tao "tsl0922@gmail.com" + +RUN apt-get update && \ + apt-get install -y cmake g++ pkg-config git vim-common libwebsockets-dev libjson-c-dev libssl-dev && \ + rm -rf /var/lib/apt/lists/* && \ + git clone --depth=1 https://github.com/tsl0922/ttyd.git /tmp/ttyd && \ + cd /tmp/ttyd && mkdir build && cd build && \ + cmake .. && make && make install && \ + rm -rf /tmp/ttyd + +EXPOSE 7681 + +ENTRYPOINT ["ttyd"] + +CMD ["bash"]