Add cache for yarn in Dockerfile

This commit is contained in:
Tims777 2024-10-06 13:11:51 +02:00
parent 10657f0164
commit b2a27968ca

View File

@ -6,7 +6,7 @@ COPY . .
# do not ignore optional dependencies:
# Error: Cannot find module @rollup/rollup-linux-x64-gnu
RUN yarn --network-timeout 600000
RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn
ARG NODE_ENV=production