chore: remove debug steps and loyment workflow
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user