perf: remove unused tiktoken encodings from node_modules
This commit is contained in:
@ -5,6 +5,8 @@ WORKDIR /app
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN npm i -g --force pnpm@9
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Remove unused encodings from `js-tiktoken`
|
||||
RUN node scripts/cleanup-js-tiktoken.js
|
||||
|
||||
COPY . .
|
||||
ENV NODE_OPTIONS="--max_old_space_size=2048"
|
||||
|
Reference in New Issue
Block a user