[ADD]Coeditor base image

This commit is contained in:
Fabien BOURGEOIS 2017-11-12 06:45:10 +01:00
parent 83188c2f75
commit 3a7b71c67d
2 changed files with 25 additions and 0 deletions

7
coeditor/base.yml Normal file
View File

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

View File

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