17 lines
447 B
Docker
17 lines
447 B
Docker
|
FROM node:4
|
||
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
||
|
|
||
|
RUN useradd tomanage -m -s /bin/bash
|
||
|
USER tomanage
|
||
|
WORKDIR /home/tomanage
|
||
|
RUN git clone --depth 1 https://github.com/ToManage/framework.git
|
||
|
RUN npm install -g bower
|
||
|
WORKDIR /home/tomanage/framework
|
||
|
RUN npm install
|
||
|
RUN bower install -F
|
||
|
RUN cp config.sample config
|
||
|
RUN sed -i 's,mongodb://127.0.0.1,mongodb://mongo,g' config
|
||
|
ENV IP 0.0.0.0
|
||
|
EXPOSE 8000
|
||
|
CMD [ "node", "debug.js" ]
|