Hexo-Async-Offends/Dockerfile-hexo

21 lines
409 B
Plaintext
Raw Permalink Normal View History

2024-07-19 09:09:37 +00:00
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"]