Created
September 25, 2014 17:54
-
-
Save cardmagic/c90c8af58bcfd4b839b4 to your computer and use it in GitHub Desktop.
This file contains 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
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