forked from engineer-man/emkc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 685 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM centos:centos7
RUN yum -y install epel-release
RUN yum -y install wget nano telnet gcc mysql-devel json-c-devel git make mysql inotify-tools
RUN cd /opt && \
git clone https://github.com/ebrian/bmig && \
cd bmig && \
make && \
make install
RUN cd /opt && \
wget https://nodejs.org/dist/v8.11.4/node-v8.11.4-linux-x64.tar.xz && \
unxz node-v8.11.4-linux-x64.tar.xz && \
tar -xf node-v8.11.4-linux-x64.tar && \
mv node-v8.11.4-linux-x64 node8
ENV PATH="${PATH}:/opt/node8/bin"
WORKDIR /opt/emkc/platform
CMD npm install && \
cd migrations && \
bmig migrate && \
cd .. && \
./start_dev --watch >> ../var/docker/logs/app.log 2>&1