From 398df7f4c4f49911db8f5bc356453a0ceb05f5c8 Mon Sep 17 00:00:00 2001 From: vagrant Date: Tue, 10 Oct 2017 03:09:27 +0000 Subject: [PATCH] add Dockerfile --- Dockerfile | 7 +++++++ README.md | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d8cea90 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:8.6 + +WORKDIR /usr/src +COPY . /usr/src +RUN npm install --production +EXPOSE 2222 +CMD npm start \ No newline at end of file diff --git a/README.md b/README.md index 8cef7fd..901d34f 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,26 @@ http://localhost:2222/ssh/host/127.0.0.1 You will be prompted for credentials to use on the SSH server via HTTP Basic authentcaiton. This is to permit usage with some SSO systems that can replay credentials over HTTP basic. +# Docker Instructions + +Modify config.json + +```json +{ + "listen": { + "ip": "0.0.0.0", + "port": 2222 + } +} +``` + +Build and run + +```bash +docker build -t webssh2 . +docker run --name webssh2 -d -p 2222:2222 webssh2 +``` + # Options ## GET request vars