[ADD]ToManage base service
This commit is contained in:
parent
d37b715af0
commit
b13d8cdea9
16
tomanage/Dockerfile
Normal file
16
tomanage/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
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" ]
|
14
tomanage/base.yml
Normal file
14
tomanage/base.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: '2'
|
||||
services:
|
||||
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
|
||||
tomanage:
|
||||
build: .
|
||||
image: tomanage:latest
|
||||
ports:
|
||||
- 8000:8000
|
||||
depends_on:
|
||||
- mongo
|
||||
|
Loading…
x
Reference in New Issue
Block a user