Files
Hexo-Async-Offends/Dockerfile-hexo
offends 36e87c0fd0
All checks were successful
continuous-integration/drone Build is passing
first commit
2025-12-13 05:10:57 +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"]