瀏覽代碼

add docker file

pull/29/head
Cian Butler 5 年之前
父節點
當前提交
3b10c025f5
共有 3 個檔案被更改,包括 10 行新增2 行删除
  1. +8
    -0
      Dockerfile
  2. +1
    -1
      package.json
  3. +1
    -1
      views/index.ejs

+ 8
- 0
Dockerfile 查看文件

@@ -0,0 +1,8 @@
FROM node:6-onbuild

ENV NODE_ENV=production

RUN npm install -g hexo-cli
CMD npm start

EXPOSE 3000

+ 1
- 1
package.json 查看文件

@@ -14,7 +14,7 @@
"scripts": {
"start": "hexo generate && node ./bin/www",
"test": "echo \"Error: no test specified\" && exit 1",
"setup": "git clone https://github.com/redbrick/hexo-theme-icarus.git themes/redbrick-theme",
"preinstall": "git clone https://github.com/redbrick/hexo-theme-icarus.git themes/redbrick-theme",
"postinstall": "cd themes/redbrick-theme && bower install"
},
"hexo": {


+ 1
- 1
views/index.ejs 查看文件

@@ -2,7 +2,7 @@
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
<link rel='stylesheet' href='/css/style.css' />
</head>
<body>
<h1><%= title %></h1>


Loading…
取消
儲存