Dockerfile/blog/Dockerfile
ehlxr 1a27507040 feat(): add hexo-base
add hexo-base

Signed-off-by: ehlxr <ehlxr.me@gmail.com>
2018-03-29 09:54:27 +08:00

14 lines
288 B
Docker

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;"]