Browse Source

Merge pull request #5 from nathanleclaire/master

Dockerize wetty
pull/13/head
Krishna Srinivas 11 years ago
parent
commit
1dccea0b4b
  1. 15
      Dockerfile
  2. 15
      README.md

15
Dockerfile

@ -0,0 +1,15 @@
FROM node
MAINTAINER Nathan LeClaire <nathan@docker.com>
ADD . /app
WORKDIR /app
RUN npm install
RUN apt-get update
RUN apt-get install -y vim
RUN useradd -d /home/term -m -s /bin/bash term
RUN echo 'term:term' | chpasswd
EXPOSE 3000
ENTRYPOINT ["node"]
CMD ["app.js", "-p", "3000"]

15
README.md

@ -84,3 +84,18 @@ Issues
------
Does not work on Firefox as hterm was written for ChromeOS. So works well on Chrome.
Dockerized Version
------------------
This repo includes a Dockerfile you can use to run a Dockerized version of wetty. You can run
whatever you want!
Just do:
```
docker run --name term -p 3000 -dt nathanleclaire/wetty
```
Visit the appropriate URL in your browser (`[localhost|$(boot2docker ip)]:PORT`).
The username is `term` and the password is `term`.

Loading…
Cancel
Save