搭建即收即毁的临时邮箱系统forsaken-mail

源码官网:https://github.com/denghongcai/forsaken-mail

Installation


Docker安装(首推)


如果你网速较好的话,可以使用这种方法:

$~ docker pull malaohu/forsaken-mail //官方的镜像

搭建即收即毁的临时邮箱系统forsaken-mail_第1张图片
拉取forsaken

$~ docker run --name forsaken-mail -d -p 25:25 -p 3000:3000 malaohu/forsaken-mail
运行.png

View on http://yourip:3000

搭建即收即毁的临时邮箱系统forsaken-mail_第2张图片
主界面.png



如果你网速不太可以的话,请使用这种方法:


$~ git clone http://www.jianshu.com/p/34d3b4568059

修改Dockerfile文件,更换淘宝node源

$~ 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


保存

$~ docker build -t denghongcai/forsaken-mail . (不要忘记".")

docker部署过程
搭建即收即毁的临时邮箱系统forsaken-mail_第3张图片
构建完成

$~ docker run --name forsaken-mail -d -p 25:25 -p 3000:3000 denghongcai/forsaken-mail


View On http://localhost:3000.

搭建即收即毁的临时邮箱系统forsaken-mail_第4张图片
主界面.png


npm源码安装


首先安装node.js环境 ,记得换源噢~可以参考我的文章node.js安装和换淘宝源.
$~ git clone https://github.com/denghongcai/forsaken-mail.git
$~ npm install && npm start

你可能感兴趣的:(搭建即收即毁的临时邮箱系统forsaken-mail)