implement docker cache mount for yarn
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ WORKDIR /data
|
|||||||
COPY ./package.json ./yarn.lock ./playwright.config.ts ./
|
COPY ./package.json ./yarn.lock ./playwright.config.ts ./
|
||||||
|
|
||||||
# Increase timeout to pass github actions arm64 build
|
# 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 && \
|
RUN npx playwright install-deps && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
|
|||||||
Reference in New Issue
Block a user