Parcourir la source

mount node_modules/.cache to use HardSourceWebpackPlugin

Yuki Takei il y a 6 ans
Parent
commit
f7509db9e6
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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