This commit is contained in:
20
Dockerfile-hexo
Normal file
20
Dockerfile-hexo
Normal file
@@ -0,0 +1,20 @@
|
||||
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"]
|
Reference in New Issue
Block a user