From 853ccef3acad560b610e3fdf4ca115c72564d915 Mon Sep 17 00:00:00 2001 From: Alvin Lai Date: Fri, 12 Dec 2014 21:26:53 -0800 Subject: [PATCH] Add Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..83f06cc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM golang:1.3.3 +MAINTAINER Alvin Lai + +RUN apt-get update +RUN apt-get install -y openssh-client + +RUN go get github.com/shazow/ssh-chat +RUN ssh-keygen -f ~/.ssh/id_rsa -t rsa -N '' + +EXPOSE 2022 + +CMD ["-i", "/root/.ssh/id_rsa", "-vv", "--bind", "\":2022\""] +ENTRYPOINT ["ssh-chat"]