diff --git a/Dockerfile.onbuild b/Dockerfile.onbuild index c536cc9b664e74091df7e2757ec9f7e7e4dc6575..408949bfea186844189c0ecde1d3dc6deb93c48a 100644 --- a/Dockerfile.onbuild +++ b/Dockerfile.onbuild @@ -8,7 +8,7 @@ ONBUILD ARG NODE_ENV ONBUILD ENV NODE_ENV $NODE_ENV ONBUILD COPY package.json . -ONBUILD RUN npm install && npm cache clean && rm -fr /tmp/* /root/.npm +ONBUILD RUN npm install && npm cache clean && rm -fr /tmp/* ~/.npm ONBUILD COPY . . CMD [ "npm", "start" ]