implement docker cache mount for yarn

This commit is contained in:
modem7 2024-01-02 17:39:50 +00:00
parent 89de1829c2
commit a5b166f41d
No known key found for this signature in database
GPG Key ID: 2C37853D96B6D9E9

View File

@ -9,7 +9,7 @@ WORKDIR /data
COPY ./package.json ./yarn.lock ./playwright.config.ts ./
# Increase timeout to pass github actions arm64 build
RUN yarn install --network-timeout 10000000
RUN --mount=type=cache,sharing=locked,target=/usr/local/share/.cache/yarn yarn install --network-timeout 10000000
RUN npx playwright install-deps && \
apt-get clean && \