From 25b068f673d7a4ebdca25e27a345c8b689509c2a Mon Sep 17 00:00:00 2001 From: mtvpls Date: Thu, 11 Jun 2026 10:31:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5pnpm-lock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 + Dockerfile | 5 +++-- Dockerfile.lite | 4 ++-- pnpm-lock.yaml | 18 +++++++++++++----- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.dockerignore b/.dockerignore index ea31912..8baf626 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,6 @@ .env .env*.local +pnpm-lock.yaml public/screenshot1.png public/screenshot2.png public/screenshot3.png diff --git a/Dockerfile b/Dockerfile index 8412147..20105f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,11 @@ RUN corepack enable && corepack prepare pnpm@latest --activate WORKDIR /app # 仅复制依赖清单,提高构建缓存利用率 -COPY package.json pnpm-lock.yaml ./ +# pnpm-lock.yaml 已在 .dockerignore 中排除,因此这里不复制锁文件 +COPY package.json ./ # 安装所有依赖(含 devDependencies,后续会裁剪) -RUN pnpm install --frozen-lockfile +RUN pnpm install --no-frozen-lockfile # ---- 第 2 阶段:构建项目 ---- FROM node:24-alpine AS builder diff --git a/Dockerfile.lite b/Dockerfile.lite index cecd464..7eb051f 100644 --- a/Dockerfile.lite +++ b/Dockerfile.lite @@ -5,9 +5,9 @@ RUN corepack enable && corepack prepare pnpm@latest --activate WORKDIR /app -COPY package.json pnpm-lock.yaml ./ +COPY package.json ./ -RUN pnpm install --frozen-lockfile +RUN pnpm install --no-frozen-lockfile # ---- 第 2 阶段:构建项目 ---- FROM node:24-alpine AS builder diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5d3e90e..3b56713 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,8 +51,11 @@ importers: specifier: ^1.0.0 version: 1.0.0(@webgpu/types@0.1.68) artplayer: - specifier: ^5.3.0 - version: 5.3.0 + specifier: ^5.4.0 + version: 5.4.0 + artplayer-plugin-auto-thumbnail: + specifier: ^1.1.0 + version: 1.1.0 artplayer-plugin-danmuku: specifier: ^5.2.0 version: 5.2.0 @@ -3793,11 +3796,14 @@ packages: resolution: {integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==} engines: {node: '>=8'} + artplayer-plugin-auto-thumbnail@1.1.0: + resolution: {integrity: sha512-ALrcLv+qEDime+R8p4628RZTfMGlrpX6d7PLIQaYWsQEN3lPzVjcVcARCFpqnFI8gvRdqt21w72sJphf50xtVw==} + artplayer-plugin-danmuku@5.2.0: resolution: {integrity: sha512-iHHSGEc0J+gl7imX4nmLqqC7LXmv8xeGf2lUevhhyUCoiCRZplecpKQICHjErVb1Yqyp1xCy6Sp8eYN+EpFWFw==} - artplayer@5.3.0: - resolution: {integrity: sha512-yExO39MpEg4P+bxgChxx1eJfiUPE4q1QQRLCmqGhlsj+ANuaoEkR8hF93LdI5ZyrAcIbJkuEndxEiUoKobifDw==} + artplayer@5.4.0: + resolution: {integrity: sha512-2B+plbx8N2yNsjK4nJU3+EOG8TULm1LRZk/QPkWRAMEX2Ee/MSnZG/WJYz8kcoZxZuLKcQ3uXifqLuPxZOH29A==} assert@2.1.0: resolution: {integrity: sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==} @@ -13323,9 +13329,11 @@ snapshots: arrify@2.0.1: {} + artplayer-plugin-auto-thumbnail@1.1.0: {} + artplayer-plugin-danmuku@5.2.0: {} - artplayer@5.3.0: + artplayer@5.4.0: dependencies: option-validator: 2.0.6