Skip to content

Commit

Permalink
Reverted replacing npm with yarn (infiniflow#2531)
Browse files Browse the repository at this point in the history
Reverted replacing npm with yarn

### Type of change

- [x] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
  • Loading branch information
yuzhichang authored Sep 23, 2024
1 parent 8eb56e9 commit 4b5cd48
Show file tree
Hide file tree
Showing 4 changed files with 28,008 additions and 14,516 deletions.
6 changes: 1 addition & 5 deletions Dockerfile.scratch
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt update && apt install -y nodejs npm && \
rm -rf /var/lib/apt/lists/*

# if you located in China, you can use taobao registry to speed up npm and yarn
RUN npm config set registry https://registry.npmmirror.com/

# https://yarnpkg.com/getting-started/install
COPY web web
RUN cd web && npm install -g corepack && corepack enable && yarn install && yarn run build
RUN cd web && npm i --force && npm run build

# install dependencies from poetry.lock file
COPY pyproject.toml poetry.toml poetry.lock ./
Expand Down
Loading

0 comments on commit 4b5cd48

Please sign in to comment.