Skip to content

Instantly share code, notes, and snippets.

@cardmagic
Created September 25, 2014 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cardmagic/c90c8af58bcfd4b839b4 to your computer and use it in GitHub Desktop.
Save cardmagic/c90c8af58bcfd4b839b4 to your computer and use it in GitHub Desktop.
FROM ubuntu:14.04 MAINTAINER CenturyLink
# Install node & npm
RUN apt-get -qqy update && \ DEBIAN_FRONTEND=noninteractive apt-get -y install vim git nodejs npm RUN ln -s /usr/bin/nodejs /usr/bin/node
# Install Wetty
WORKDIR /opt/wetty RUN git clone https://github.com/krishnasrinivas/wetty.git . && \ git reset --hard 223b1b1 RUN npm install
# Set-up term user
RUN useradd -d /home/term -m -s /bin/bash term RUN echo 'term:term' | chpasswd RUN sudo adduser term sudo
EXPOSE 3000
CMD env | grep -v 'HOME|PWD|PATH' | while read env; do echo "export $env" >> /home/term/.bashrc ; done && \ node /opt/wetty/app.js -p 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment