ARG IMAGENAME=node:alpine FROM ${IMAGENAME} LABEL maintainer="Offends " RUN npm install -g hexo-cli \ && hexo init hexo \ && npm install --prefix /hexo/ WORKDIR /hexo EXPOSE 4000 # CMD ["npm", "run", "server] CMD ["hexo", "server"]