Last active
August 29, 2015 13:57
-
-
Save yoshimov/9545407 to your computer and use it in GitHub Desktop.
Docker file for tty.js
This file contains hidden or 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
| # Docker file for tty.js | |
| # | |
| # To build new image: | |
| # | |
| # > sudo docker build -t ttyjs . | |
| # | |
| # To run the image: | |
| # | |
| # > sudo docker run -d -p 8022:8080 -v /home/hoge:/ttyjs ttyjs | |
| FROM ubuntu:13.10 | |
| RUN apt-get update | |
| RUN apt-get install -y nodejs npm openssh-client | |
| RUN npm config set registry http://registry.npmjs.org/ | |
| RUN npm install -y tty.js | |
| RUN ln -s /usr/bin/nodejs /usr/bin/node | |
| VOLUME ["/ttyjs"] | |
| EXPOSE 8080 | |
| CMD [ "/node_modules/tty.js/bin/tty.js", "--config", "/ttyjs/config.json" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment