Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
denghongcai committed Dec 31, 2015
1 parent c3579e7 commit 84272b7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:latest
MAINTAINER Hongcai Deng <admin@dhchouse.com>

RUN apt-get clean all
RUN apt-get update
RUN apt-get -y install git
RUN git clone https://github.com/denghongcai/forsaken-mail.git /forsaken-mail

WORKDIR /forsaken-mail

RUN npm config set disturl https://npm.taobao.org/dist
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install

EXPOSE 25
CMD npm start
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ In order to receive emails, your smtp server address should be made available so
You can fire up Mailin (see next section) and use an [smtp server tester](http://mxtoolbox.com/diagnostic.aspx) to verify that everything is correct.

#### Let's Go
general way:
```
npm install && npm start
```
if you want run this inside a docker container
```
docker build -t denghongcai/forsaken-mail .
docker run --name forsaken-mail -d -p 25:25 denghongcai/forsaken-mail
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "forsaken-mail",
"version": "0.0.1",
"version": "0.1.0",
"description": "",
"main": "app.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<div class="header">可爱的小狗</div>
</div>
<div class="content">
<p>汪汪汪</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 84272b7

Please sign in to comment.