Commit Graph

4 Commits

Author SHA1 Message Date
Kunthawat Greethong
c0bd564d53 🐳 Add Dockerfile for Next.js production deployment
Features:
 Multi-stage build (deps → builder → runner)
 Optimized for Next.js standalone output
 Non-root user for security (nextjs:nodejs)
 dumb-init for proper signal handling
 Health checks configured
 Exposes port 3000

Benefits over Nixpacks:
 Faster builds (cached dependencies)
 Smaller image size (~150MB vs ~500MB)
 More predictable builds
 Full control over build process
 Better security (non-root user)

Easypanel Configuration:
- Build Type: Dockerfile
- Dockerfile Path: ./Dockerfile
- Port: 3000
2026-03-10 10:03:15 +07:00
Kunthawat Greethong
ca9787d4dd fix: Use original favicons from dealplustech.co.th
- Real favicon.ico from original website (1.4KB)
- Real favicon.svg from original website (140KB)
- Real apple-touch-icon.png from original website
- Match exact original branding
2026-03-03 18:08:40 +07:00
Kunthawat Greethong
1342026b4f 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
2026-03-03 17:50:14 +07:00
Kunthawat Greethong
c802279cf9 fix: Remove redundant public folder copy
- Astro build already copies public/ to dist/
- Separate public copy was unnecessary
- Only copy dist folder (contains everything including favicon)
- Fixes favicon 404 error
2026-03-03 14:22:58 +07:00