chore: update Dockerfile to install pnpm globally and modify Gitea CI/CD workflow to specify platform
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m58s

This commit is contained in:
typist
2025-10-27 22:15:05 +08:00
parent 82e10b72c7
commit 1a2bdf5bd0
2 changed files with 3 additions and 2 deletions

View File

@@ -44,5 +44,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/cache
cache-to: type=local,dest=/cache,mode=max
platforms: linux/amd64,linux/arm64
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64

View File

@@ -2,7 +2,7 @@
FROM node:22-alpine AS builder
# 安装 pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN npm install -g pnpm
# 设置工作目录
WORKDIR /app