-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
58 lines (47 loc) · 1.9 KB
/
Dockerfile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM mophos/mmis-nginx
LABEL maintainer="Satit Rianpit <rianpit@gmail.com>"
WORKDIR /home/mmis
RUN npm i npm@6.4.1 -g
RUN npm i -g pm2
RUN git clone https://github.com/mophos/mmis-frontend-dist \
&& git clone https://github.com/mophos/mmis-inventory-backend \
&& cd mmis-inventory-backend \
&& mv views/css.pug.txt views/css.pug \
&& npm i && npm run build \
&& cp -r views app/views && cd .. \
&& git clone https://github.com/mophos/mmis-purchase-backend \
&& cd mmis-purchase-backend \
&& mv views/css.pug.txt views/css.pug \
&& npm i && npm run build && cd .. \
&& git clone https://github.com/mophos/mmis-material-backend \
&& cd mmis-material-backend \
&& mv views/css.pug.txt views/css.pug \
&& npm i && npm run build && cd .. \
&& git clone https://github.com/mophos/mmis-management-backend \
&& cd mmis-management-backend \
&& mv views/css.pug.txt views/css.pug \
&& npm i && npm run build && cd .. \
&& git clone https://github.com/mophos/mmis-portal-backend \
&& cd mmis-portal-backend \
&& mv views/css.pug.txt views/css.pug \
&& npm i && npm run build && cd .. \
&& git clone https://github.com/mophos/mmis-contract-backend \
&& cd mmis-contract-backend \
&& mv views/css.pug.txt views/css.pug \
&& npm i && npm run build && cd .. \
&& git clone https://github.com/mophos/mmis-planning-backend \
&& cd mmis-planning-backend \
&& mv views/css.pug.txt views/css.pug \
&& npm i && npm run build && cd .. \
&& git clone https://github.com/mophos/mmis-documents-management \
&& cd mmis-documents-management \
&& npm i && npm run build && cd .. \
&& git clone https://github.com/mophos/mmis-report-backend \
&& cd mmis-report-backend \
&& npm i && npm run build && cd ..
COPY ./server-script/ .
RUN npm init -y && npm i express
COPY ./config/nginx.conf /etc/nginx
COPY ./config/process.json .
CMD /usr/sbin/nginx && /usr/bin/pm2-runtime process.json
EXPOSE 80