-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
36 lines (28 loc) · 828 Bytes
/
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
FROM node:8.9.4
RUN mkdir -p /home/Service
RUN mkdir -p /home/Service/dist
RUN mkdir -p /home/Service/_3part
RUN mkdir -p /home/Service/_3part/amf
RUN mkdir -p /home/Service/_3part/yellowstone
WORKDIR /home/Service
ADD dist/ /home/Service/dist
ADD _3part/ /home/Serice/_3part
ADD _3part/amf/ /home/Service/_3part/amf
ADD _3part/yellowstone/ /home/Service/_3part/yellowstone
COPY assets/monitors/ /home/Service/assets/monitors
COPY src/ /home/Service/src
COPY .babelrc /home/Service
COPY package.json /home/Service
COPY process.yml /home/Service
EXPOSE 443
RUN npm cache verify \
&& npm config set registry https://registry.npm.taobao.org \
&& npm i webpack -g \
&& npm i pm2 -g \
&& npm i node-gyp -g \
&& npm i babel-cli -g \
&& npm i
EXPOSE 9000
EXPOSE 4001
EXPOSE 3000
CMD ["npm", "run","dev"]