diff --git a/coeditor/base.yml b/coeditor/base.yml new file mode 100644 index 0000000..bc30c2e --- /dev/null +++ b/coeditor/base.yml @@ -0,0 +1,7 @@ +version: '2.2' + +services: + + coeditor: + build: ./coeditor + image: registry.yaltik.net/coeditor:yaltik diff --git a/coeditor/coeditor/Dockerfile b/coeditor/coeditor/Dockerfile new file mode 100644 index 0000000..feffa57 --- /dev/null +++ b/coeditor/coeditor/Dockerfile @@ -0,0 +1,18 @@ +FROM node:6-stretch +MAINTAINER Yaltik - Fabien Bourgeois + +# 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"]