Sfoglia il codice sorgente

mount node_modules/.cache to use HardSourceWebpackPlugin

Yuki Takei 6 anni fa
parent
commit
f7509db9e6
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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