Browse Source

mount node_modules/.cache to use HardSourceWebpackPlugin

Yuki Takei 6 năm trước cách đây
mục cha
commit
f7509db9e6
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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