Browse Source

mount node_modules/.cache to use HardSourceWebpackPlugin

Yuki Takei 6 years ago
parent
commit
f7509db9e6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docker/Dockerfile

+ 2 - 1
docker/Dockerfile

@@ -79,7 +79,8 @@ ENV appDir /opt/growi
 WORKDIR ${appDir}
 
 # build
-RUN yarn build:prod
+RUN --mount=type=cache,target=./node_modules/.cache \
+  yarn build:prod
 
 # remove except artifacts
 WORKDIR /tmp