From 14faccb1a63a2098b5da4099befd962fbf50777a Mon Sep 17 00:00:00 2001 From: sijinhui Date: Sat, 4 May 2024 12:39:19 +0800 Subject: [PATCH] test pack --- Dockerfile | 14 ++++++++++---- package.json | 6 ++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index cd15a087e..ca27bc04e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,13 @@ #FROM registry.cn-hangzhou.aliyuncs.com/sijinhui/node:18-alpine AS base FROM hub.siji.ci/library/node:20-alpine AS base RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories -RUN apk update && apk add --no-cache git tzdata vips-dev +RUN apk update && apk add --no-cache git tzdata +RUN apk add --no-cache \ + vips-dev \ + fftw-dev \ + glib-dev \ + glib \ + expat-dev # 设置时区环境变量 ENV TZ=Asia/Chongqing # 更新并安装时区工具 @@ -14,9 +20,9 @@ WORKDIR /app COPY package.json ./ -RUN yarn config set registry 'https://registry.npmmirror.com/' -RUN yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp" -RUN yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips" +#RUN yarn config set registry 'https://registry.npmmirror.com/' +#RUN yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp" +#RUN yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips" #RUN # 清理遗留的缓存 RUN yarn cache clean RUN yarn install diff --git a/package.json b/package.json index e161f1d69..4baeb9bf1 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@hello-pangea/dnd": "^16.5.0", "@next-auth/prisma-adapter": "^1.0.7", "@next/third-parties": "^14.2.1", - "@prisma/client": "5.13.0", + "@prisma/client": "5.12.1", "@svgr/webpack": "^8.1.0", "@vercel/analytics": "^1.1.2", "@vercel/speed-insights": "^1.0.9", @@ -59,7 +59,6 @@ "zustand": "^4.5.0" }, "devDependencies": { - "@next/bundle-analyzer": "^14.2.3", "@tauri-apps/cli": "1.5.11", "@types/bcryptjs": "^2.4.6", "@types/cookie": "^0.6.0", @@ -82,8 +81,7 @@ "postcss": "^8.4.33", "prettier": "^3.2.4", "prettier-plugin-tailwindcss": "^0.5.11", - "prisma": "^5.13.0", - "speed-measure-webpack-plugin": "^1.5.0", + "prisma": "^5.12.1", "tailwindcss": "^3.4.1", "tailwindcss-animate": "^1.0.7", "typescript": "^5.3.3",