FROM ubuntu:14.04.5

# Because there is no package cache in the image, you need to run:
RUN apt-get update

# Install nodejs 
RUN apt-get install -y nodejs npm
RUN ln -s /usr/bin/nodejs /usr/bin/node

# Install tty-table
RUN apt-get install git -y
RUN git clone https://www.github.com/tecfu/tty-table

# Install grunt
RUN npm install grunt-cli -g

# Install dev dependencies
WORKDIR /tty-table
RUN npm install

# Run unit tests
RUN grunt t
