From 54911acb6cf34731bbd945355c2aefe9aeb74f60 Mon Sep 17 00:00:00 2001 From: 36web <36web.rocks@gmail.com> Date: Thu, 24 Jan 2019 05:46:42 +0800 Subject: [PATCH] workaround for https://github.com/npm/uid-number/issues/3 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index eacb058..a5d6de3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,10 @@ FROM node:10-alpine LABEL AUTHOR Chris<36bweb.rocks@gmail.com> RUN apk add --no-cache git \ + && npm config set unsafe-perm true \ && npm install -g hexo-cli \ && npm cache clear --force \ + && npm config set unsafe-perm false \ && rm -rf /tmp/* \ && mkdir /blog \ && chown node:node /blog