add Dockerfile

This commit is contained in:
Jack Hu 2016-10-02 10:05:18 +08:00
parent 466f23de08
commit 2399a0cdc0
5 changed files with 26 additions and 16 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
*.md
.git
node_modules
test
test_coverage
webpack
src

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM jackhu/jenkins-deploy-nodejs:6
MAINTAINER Jack Hu <hello@jackhu.top>
EXPOSE 8400
CMD ["npm","run","pm2-start"]

View File

@ -4,7 +4,7 @@
Jackblog 是使用 Node.js + MongoDB + 其它客户端框架开发的个人博客系统,前后端分离,仿简书模板.
服务端有: [express 版](https://github.com/jackhutu/jackblog-api-express) , [koa 版](https://github.com/jackhutu/jackblog-api-koa)
客户端有: [angular1.x 版](https://github.com/jackhutu/jackblog-angular1) , [angular2.x 版](https://github.com/jackhutu/jackblog-angular2) , [react redux 版](https://github.com/jackhutu/jackblog-react-redux) , [vue 版](https://github.com/jackhutu/jackblog-vue)
客户端有: [angular1.x 版](https://github.com/jackhutu/jackblog-angular1) , [angular2.x 版](https://github.com/jackhutu/jackblog-angular2) , [react 版](https://github.com/jackhutu/jackblog-react) , [vue 版](https://github.com/jackhutu/jackblog-vue)
移动端有: [react native 版](https://github.com/jackhutu/jackblog-react-native-redux), [ionic2.0 版](https://github.com/jackhutu/jackblog-ionic2)
##### 此为客户端vue版, 需要配合服务端使用.
@ -67,7 +67,6 @@ $ gulp build 或 gulp serve:dist
```
$ pm2 start process.json
```
可参考[利用git和pm2一键布署项目到vps](http://jackhu.top/article/55cd8e00c6e998b817a930c7)
## License
MIT

View File

@ -1,12 +1,11 @@
{
"name": "jackblog-vue",
"version": "1.2.3",
"version": "1.2.4",
"description": "Jackblog vue 版",
"scripts": {
"start": "gulp serve",
"build": "gulp build",
"pm2-start": "pm2 start process.json",
"pm2-restart": "pm2 restart process.json"
"pm2-start": "pm2 start --no-daemon process.json"
},
"repository": {
"type": "git",
@ -68,7 +67,6 @@
},
"dependencies": {
"express": "^4.14.0",
"pm2": "^1.1.3",
"serve-favicon": "^2.3.0"
}
}