-
Notifications
You must be signed in to change notification settings - Fork 48
/
Dockerfile
26 lines (19 loc) · 923 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
FROM node:latest
MAINTAINER csi0n <[email protected]>
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
echo "deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list && \
echo "deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
ADD . /workspace
WORKDIR /workspace
RUN apt-get update && \
cd ./client && \
npm install && \
npm run build && \
cd ../server && \
npm install && \
npm run build && \
npm install -g pm2
CMD ["pm2-runtime","start","/workspace/server/build","--","mongodb://mongo/scout"]
EXPOSE 3001