[ADD]Coeditor base image
This commit is contained in:
parent
83188c2f75
commit
3a7b71c67d
7
coeditor/base.yml
Normal file
7
coeditor/base.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
version: '2.2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
coeditor:
|
||||||
|
build: ./coeditor
|
||||||
|
image: registry.yaltik.net/coeditor:yaltik
|
18
coeditor/coeditor/Dockerfile
Normal file
18
coeditor/coeditor/Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user