From e7f300b4bc7c218db65e3051882b611706eac372 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Wed, 17 Dec 2025 13:40:47 +0700 Subject: [PATCH] [core] Fix docker build can't be found in the cache and will be fetched from the remote repository Cannot apply hunk 1 --- Dockerfile | 10 +++++----- package.json | 1 + yarn.lock | 22 +--------------------- 3 files changed, 7 insertions(+), 26 deletions(-) diff --git a/Dockerfile b/Dockerfile index 704a57ed..975aa49d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,23 +7,23 @@ ARG GOLANG_IMAGE_TAG=1.24-bookworm FROM node:${NODE_IMAGE_TAG} AS build ENV PUPPETEER_SKIP_DOWNLOAD=True +# git + build toolchain for git deps +RUN apt-get update && apt-get install -y git python3 build-essential && rm -rf /var/lib/apt/lists/* + # npm packages WORKDIR /git COPY package.json . COPY yarn.lock . ENV YARN_CHECKSUM_BEHAVIOR=update -# git -RUN apt-get update && apt-get install -y git - RUN npm install -g corepack && corepack enable RUN yarn set version 3.6.3 -RUN yarn install +RUN yarn install --immutable # App WORKDIR /git ADD . /git -RUN yarn install +RUN yarn install --immutable RUN yarn build && find ./dist -name "*.d.ts" -delete # diff --git a/package.json b/package.json index dbe6c201..f787a87f 100644 --- a/package.json +++ b/package.json @@ -115,6 +115,7 @@ "bufferutil": "^4.0.8" }, "resolutions": { + "typescript": "5.9.2", "bufferutil": "^4.0.8", "ws": "^8.18.0", "puppeteer": "^24.31.0", diff --git a/yarn.lock b/yarn.lock index c9357a11..97f54c0f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12301,16 +12301,6 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.8.3": - version: 5.8.3 - resolution: "typescript@npm:5.8.3" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: cb1d081c889a288b962d3c8ae18d337ad6ee88a8e81ae0103fa1fecbe923737f3ba1dbdb3e6d8b776c72bc73bfa6d8d850c0306eed1a51377d2fccdfd75d92c4 - languageName: node - linkType: hard - "typescript@npm:5.9.2": version: 5.9.2 resolution: "typescript@npm:5.9.2" @@ -12321,17 +12311,7 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@5.8.3#~builtin": - version: 5.8.3 - resolution: "typescript@patch:typescript@npm%3A5.8.3#~builtin::version=5.8.3&hash=f3b441" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 1b503525a88ff0ff5952e95870971c4fb2118c17364d60302c21935dedcd6c37e6a0a692f350892bafcef6f4a16d09073fe461158547978d2f16fbe4cb18581c - languageName: node - linkType: hard - -"typescript@patch:typescript@5.9.2#~builtin": +"typescript@patch:typescript@npm%3A5.9.2#~builtin": version: 5.9.2 resolution: "typescript@patch:typescript@npm%3A5.9.2#~builtin::version=5.9.2&hash=f3b441" bin: