Hexo-Async-Offends/Dockerfile-hexo

17 lines
264 B
Plaintext
Raw Normal View History

2024-07-19 07:54:23 +00:00
ARG IMAGENAME=node:alpine
FROM ${IMAGENAME}
LABEL maintainer="Offends <offends4@163.com>"
RUN npm install -g hexo-cli \
&& hexo init hexo \
&& npm install --prefix /hexo/
WORKDIR /hexo
EXPOSE 4000
# CMD ["npm", "run", "server]
CMD ["hexo", "server"]