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