chore: remove debug steps and loyment workflow
All checks were successful
CI / build-and-test (push) Successful in 7m32s
CI / deploy (push) Successful in 1m1s

This commit is contained in:
SpecialX
2025-12-19 18:13:48 +08:00
parent 11ea7c880c
commit fc3e9a4220
2 changed files with 9 additions and 9 deletions

View File

@@ -30,15 +30,17 @@ jobs:
- name: Build - name: Build
run: npm run 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 - name: Upload production build artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: next-build name: next-build
path: | path: .next/standalone
.next/standalone
.next/static
public
Dockerfile
deploy: deploy:
needs: build-and-test needs: build-and-test

View File

@@ -7,10 +7,8 @@ RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs
# Copy standalone output # Copy standalone output
# We assume the context contains the .next folder and public folder from the artifacts # The context is now the standalone folder itself
COPY --chown=nextjs:nodejs .next/standalone ./ COPY --chown=nextjs:nodejs . .
COPY --chown=nextjs:nodejs .next/static ./.next/static
COPY --chown=nextjs:nodejs public ./public
USER nextjs USER nextjs