Skip to content

Instantly share code, notes, and snippets.

@yoshimov
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save yoshimov/9545407 to your computer and use it in GitHub Desktop.

Select an option

Save yoshimov/9545407 to your computer and use it in GitHub Desktop.
Docker file for tty.js
# 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