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