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