From fc3e9a4220a19fe710cddb58d9719cca9e4dbe3d Mon Sep 17 00:00:00 2001 From: SpecialX <47072643+wangxiner55@users.noreply.github.com> Date: Fri, 19 Dec 2025 18:13:48 +0800 Subject: [PATCH] chore: remove debug steps and loyment workflow --- .gitea/workflows/ci.yml | 12 +++++++----- Dockerfile | 6 ++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 324c72b..ca7d67c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -30,15 +30,17 @@ jobs: - name: Build run: npm run build + - name: Prepare standalone build + run: | + cp -r public .next/standalone/public + cp -r .next/static .next/standalone/.next/static + cp Dockerfile .next/standalone/Dockerfile + - name: Upload production build artifact uses: actions/upload-artifact@v3 with: name: next-build - path: | - .next/standalone - .next/static - public - Dockerfile + path: .next/standalone deploy: needs: build-and-test diff --git a/Dockerfile b/Dockerfile index 842b8c2..6dc972b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,8 @@ RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs # Copy standalone output -# We assume the context contains the .next folder and public folder from the artifacts -COPY --chown=nextjs:nodejs .next/standalone ./ -COPY --chown=nextjs:nodejs .next/static ./.next/static -COPY --chown=nextjs:nodejs public ./public +# The context is now the standalone folder itself +COPY --chown=nextjs:nodejs . . USER nextjs