✨ feat(): add hexo-base
add hexo-base Signed-off-by: ehlxr <ehlxr.me@gmail.com>
This commit is contained in:
commit
1a27507040
14
blog/Dockerfile
Normal file
14
blog/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
FROM ehlxr/hexo:latest
|
||||||
|
# WORKDIR /hexo
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN hexo generate && gulp
|
||||||
|
|
||||||
|
# ENTRYPOINT [ "hexo", "server" ]
|
||||||
|
# CMD [ "-p", "80" ]
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
LABEL maintainer="ehlxr.me@gmail.com"
|
||||||
|
WORKDIR /usr/share/nginx/html
|
||||||
|
COPY --from=0 /hexo/public .
|
||||||
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
15
hexo-base/Dockerfile
Normal file
15
hexo-base/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM node:alpine
|
||||||
|
LABEL maintainer="ehlxr.me@gmail.com"
|
||||||
|
WORKDIR /hexo
|
||||||
|
|
||||||
|
COPY package.json package.json
|
||||||
|
|
||||||
|
RUN apk add --update --no-cache --virtual=build-dependencies git \
|
||||||
|
&& npm config set registry https://registry.npm.taobao.org \
|
||||||
|
&& npm install \
|
||||||
|
&& ln -s /hexo/node_modules/hexo-cli/bin/hexo /usr/local/bin/hexo \
|
||||||
|
&& ln -s /hexo/node_modules/gulp/bin/gulp.js /usr/local/bin/gulp \
|
||||||
|
&& apk del build-dependencies \
|
||||||
|
&& rm /var/cache/apk/* \
|
||||||
|
&& rm package*.json \
|
||||||
|
&& npm cache clean --force
|
44
hexo-base/package.json
Normal file
44
hexo-base/package.json
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"name": "hexo-site",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"hexo": {
|
||||||
|
"version": "3.6.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"prebuild": "hexo clean",
|
||||||
|
"build": "hexo g",
|
||||||
|
"postbuild": "gulp"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"gulp": "^3.9.1",
|
||||||
|
"gulp-htmlclean": "^2.7.20",
|
||||||
|
"gulp-htmlmin": "^3.0.0",
|
||||||
|
"gulp-minify-css": "^1.2.4",
|
||||||
|
"gulp-pretty-data": "^0.2.0",
|
||||||
|
"gulp-uglify": "^3.0.0",
|
||||||
|
"hexo": "^3.6.0",
|
||||||
|
"hexo-cli": "^1.1.0",
|
||||||
|
"hexo-deployer-git": "^0.2.0",
|
||||||
|
"hexo-filter-optimize": "^0.2.5",
|
||||||
|
"hexo-generator-archive": "^0.1.5",
|
||||||
|
"hexo-generator-baidu-sitemap": "^0.1.2",
|
||||||
|
"hexo-generator-category": "^0.1.3",
|
||||||
|
"hexo-generator-feed": "^1.2.2",
|
||||||
|
"hexo-generator-index": "^0.2.1",
|
||||||
|
"hexo-generator-searchdb": "^1.0.8",
|
||||||
|
"hexo-generator-sitemap": "^1.2.0",
|
||||||
|
"hexo-generator-tag": "^0.2.0",
|
||||||
|
"hexo-helper-qrcode": "^1.0.2",
|
||||||
|
"hexo-related-popular-posts": "^3.0.1",
|
||||||
|
"hexo-renderer-ejs": "^0.3.0",
|
||||||
|
"hexo-renderer-marked": "^0.3.0",
|
||||||
|
"hexo-renderer-stylus": "^0.3.3",
|
||||||
|
"hexo-server": "^0.2.2",
|
||||||
|
"hexo-symbols-count-time": "^0.2.0",
|
||||||
|
"hexo-wordcount": "^2.0.1",
|
||||||
|
"npm": "^5.8.0",
|
||||||
|
"to": "^0.2.9",
|
||||||
|
"update": "^0.7.4"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user