Yarn cache

This commit is contained in:
Adria Navarro 2023-10-04 00:11:24 +02:00
parent 18545b1c79
commit 59e52884d1
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ RUN ./scripts/removeWorkspaceDependencies.sh
# We will never want to sync pro, but the script is still required # We will never want to sync pro, but the script is still required
RUN echo '' > scripts/syncProPackage.js RUN echo '' > scripts/syncProPackage.js
RUN jq 'del(.scripts.postinstall)' package.json > temp.json && mv temp.json package.json RUN jq 'del(.scripts.postinstall)' package.json > temp.json && mv temp.json package.json
RUN yarn install --production RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn install --production
# copy the actual code # copy the actual code
COPY packages/server/dist packages/server/dist COPY packages/server/dist packages/server/dist