From 35cccf66b9661d3fd631b21a692f11fd106a6178 Mon Sep 17 00:00:00 2001 From: Mukaiu Date: Sun, 4 Feb 2018 21:21:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=20chown:=20invalid=20user:=20=E2=80=98bot?= =?UTF-8?q?=E2=80=99=20(#1089)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.onbuild | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile.onbuild b/Dockerfile.onbuild index b7005e61..6618c9e9 100644 --- a/Dockerfile.onbuild +++ b/Dockerfile.onbuild @@ -6,8 +6,7 @@ ONBUILD ENV NODE_ENV $NODE_ENV ONBUILD WORKDIR /bot ONBUILD COPY package.json . -ONBUILD RUN sudo chown bot package.json \ - && jq 'del(.dependencies.wechaty)' package.json | sponge package.json \ +ONBUILD RUN jq 'del(.dependencies.wechaty)' package.json | sponge package.json \ && npm install \ && sudo rm -fr /tmp/* ~/.npm ONBUILD COPY . . -- GitLab