fix: Update Dockerfile for Next.js project

- Next.js builds to .next/standalone, not dist/
- Use next.config.mjs output: 'standalone'
- Copy .next/static for static assets
- Copy public folder for static files
This commit is contained in:
Kunthawat Greethong
2026-03-03 17:50:14 +07:00
parent a5e557d20b
commit 1342026b4f

View File

@@ -29,7 +29,6 @@ RUN npm ci --production
# Copy built assets from builder
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/public ./public
COPY --from=builder /app/astro.config.mjs ./
# Expose port
EXPOSE 4321