Hexo-Async-Offends/Dockerfile-hexo
2024-07-19 16:11:07 +08:00

21 lines
409 B
Plaintext

ARG IMAGENAME
FROM ${IMAGENAME}
LABEL maintainer="Offends <offends4@163.com>"
# 开启国内加速
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& npm config set registry https://registry.npmmirror.com \
&& apk update
RUN npm install -g hexo-cli \
&& hexo init hexo \
&& npm install --prefix /hexo/
WORKDIR /hexo
EXPOSE 4000
CMD ["hexo", "server"]