From a5b166f41dd7dc2d49535f1cadda28862932f6c4 Mon Sep 17 00:00:00 2001 From: modem7 Date: Tue, 2 Jan 2024 17:39:50 +0000 Subject: [PATCH] implement docker cache mount for yarn --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 464960b..a6d6129 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \