-
-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Damien DUPORTAL <[email protected]>
- Loading branch information
Showing
1 changed file
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,37 @@ | ||
FROM ubuntu:16.04 | ||
MAINTAINER Shuanglei Tao "[email protected]" | ||
LABEL maintainer "Shuanglei Tao - [email protected]" | ||
|
||
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 | ||
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 | ||
|
||
|