FROM node:7-alpine

RUN apk add --update git 
RUN git clone http://github.com/openspending/os-admin.git app
RUN cd app && npm install
RUN cd app && npm run build

EXPOSE 8000

COPY docker/startup.sh /startup.sh

CMD /startup.sh
