chore: remove debug steps and loyment workflow
Some checks failed
CI / deploy (push) Has been cancelled
CI / build-and-test (push) Has been cancelled

This commit is contained in:
SpecialX
2025-12-22 13:27:45 +08:00
parent fc3e9a4220
commit b453bab8b8
2 changed files with 21 additions and 1 deletions

View File

@@ -29,6 +29,25 @@ jobs:
- name: Build
run: npm run build
- name: 🔍 Debug - List Build Files
run: |
echo "======================="
echo "1. Root directory files:"
ls -la
echo "======================="
echo "2. Checking .next directory:"
if [ -d ".next" ]; then
ls -la .next
else
echo "❌ Error: .next folder does not exist!"
fi
echo "======================="
echo "3. Deep check of .next (excluding node_modules):"
# 查找 .next 目录下 4 层深度的文件,但排除 node_modules 避免日志太长
find .next -maxdepth 4 -not -path '*/node_modules*'
- name: Prepare standalone build
run: |

View File

@@ -1,7 +1,8 @@
FROM node:22-alpine AS runner
FROM node:22-bookworm-slim AS runner
WORKDIR /app
ENV NODE_ENV production
ENV NEXT_PRIVATE_STANDALONE true
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs