[ADD]Motepair basic image

This commit is contained in:
Fabien BOURGEOIS 2017-11-14 09:47:30 +01:00
parent 3a7b71c67d
commit 572eef4725
2 changed files with 25 additions and 0 deletions

7
motepair/base.yml Normal file
View File

@ -0,0 +1,7 @@
version: '2.2'
services:
coeditor:
build: ./motepair
image: registry.yaltik.net/motepair:yaltik

View File

@ -0,0 +1,18 @@
FROM node:4-stretch
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Create motepair user
RUN useradd motepair -md /opt/motepair
WORKDIR /opt/motepair
USER motepair
# Install motepair
RUN git clone --depth 1 https://github.com/motepair/motepair-server
WORKDIR /opt/motepair/motepair-server
RUN npm install
# TCP port of motepair
EXPOSE 3000
# Run motepair
CMD ["node", "target/server.js"]