FROM node:8.9.4
MAINTAINER <NAME> <<EMAIL>>

# System Deps
RUN apt-get update -y
RUN apt-get install tmux -y
RUN apt-get clean

ENV CORE /home/node/app
RUN mkdir $CORE
RUN echo $CORE
WORKDIR $CORE

RUN git init
# Install baseline cache
COPY ./package.json $CORE
COPY ./yarn.lock $CORE
RUN yarn

RUN yarn global add typescript

# Finally add remaining project source code to the docker container
ADD . $CORE

CMD ["yarn", "start"]
