源码官网:https://github.com/denghongcai/forsaken-mail
<h1>Installation</h1>
<h2>Docker安装(首推)</h2>
<h5>如果你网速较好的话,可以使用这种方法:</h5>
$~ docker pull malaohu/forsaken-mail //官方的镜像
$~ docker run --name forsaken-mail -d -p 25:25 -p 3000:3000 malaohu/forsaken-mail
View on http://yourip:3000
</br></br>
<h4>如果你网速不太可以的话,请使用这种方法:</h4>
<h6>$~ git clone http://www.jianshu.com/p/34d3b4568059 </h6>
<h5>修改Dockerfile文件,更换淘宝node源</h5>
<h6>$~ vim Dockerfile
1.在“apt-get clean"前面加上
”RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak &&
echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list &&
echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list &&
echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list &&
echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list“
进行换源
2.在"npm install"后面加上 “-g cnpm --registry=https://registry.npm.taobao.org”
亦即 npm install -g cnpm --registry=https://registry.npm.taobao.org
</br>
保存
<h6>$~ docker build -t denghongcai/forsaken-mail . (不要忘记".")
$~ docker run --name forsaken-mail -d -p 25:25 -p 3000:3000 denghongcai/forsaken-mail</h6>
<h5>View On http://localhost:3000.</h5>
</br>
<h2>npm源码安装</h2>
首先安装node.js环境 ,记得换源噢~可以参考我的文章node.js安装和换淘宝源.
$~ git clone https://github.com/denghongcai/forsaken-mail.git
$~ npm install && npm start