Remove legacy static directory from Dockerfile and deployment workflow to prevent Next.js warnings. Updated verification steps in GitHub Actions to ensure the absence of the static directory in the built image.

This commit is contained in:
smhk1376 committed 2026-09-24 15:51:43 +03:30
1 parent 19fe962143
commit de76c14c59
2 files changed
+25 -3

No files matched your search

+3
View File
@@ -15,6 +15,9 @@ RUN addgroup --system --gid 1001 nodejs \
# Single COPY of an already-complete app root (avoids missing hidden .next)
COPY --chown=nextjs:nodejs . ./
# Next warns/breaks if a legacy root-level ./static exists alongside ./public
RUN rm -rf ./static
USER nextjs
EXPOSE 3000
CMD ["node", "server.js"]