Explorar el Código

add docker file

pull/29/head
Cian Butler hace 5 años
padre
commit
3b10c025f5
Se han modificado 3 ficheros con 10 adiciones y 2 borrados
  1. +8
    -0
      Dockerfile
  2. +1
    -1
      package.json
  3. +1
    -1
      views/index.ejs

+ 8
- 0
Dockerfile Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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>


Cargando…
Cancelar
Guardar