diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6fcc141 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:6-onbuild + +ENV NODE_ENV=production + +RUN npm install -g hexo-cli +CMD npm start + +EXPOSE 3000 diff --git a/package.json b/package.json index 2bd7eb1..592b10f 100644 --- a/package.json +++ b/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": { diff --git a/views/index.ejs b/views/index.ejs index 7b7a1d6..4ada177 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -2,7 +2,7 @@ <%= title %> - +

<%= title %>