Skip to content

chore: Update Dockerfile for React 19 compatibility#7

Closed
slmingol wants to merge 3 commits intoand-computers:mainfrom
slmingol:feature/dockerfile-react19-compat
Closed

chore: Update Dockerfile for React 19 compatibility#7
slmingol wants to merge 3 commits intoand-computers:mainfrom
slmingol:feature/dockerfile-react19-compat

Conversation

@slmingol
Copy link
Copy Markdown

Overview

This PR updates the Dockerfile to support React 19 and newer dependencies.

Changes

  • Node version: Upgraded from Node 18 to Node 20
    • Required by rimraf@6.1.3 and other updated packages that need Node 20+
  • Install command: Changed from npm ci to npm install --legacy-peer-deps
    • Handles React 19 peer dependency conflicts
    • Ensures successful installation of all packages

Context

This change complements PR #6 (dependency upgrades) and PR #5 (Docker support), ensuring the Docker build works with the latest versions including React 19.2.4.

Testing

✅ Docker build successful
✅ Container runs correctly on http://localhost:3000
✅ All functionality working with React 19

Author

Submitted from fork: https://github.com/slmingol/react-connections-game

- Add Dockerfile with Node.js build and Nginx production stages
- Add docker-compose.yml for local development with build
- Add docker-compose.simple.yml for running from GHCR
- Add .dockerignore to optimize build context
- Use Debian-based Node image for ARM compatibility
- Upgrade React & React DOM to v19.2.4
- Upgrade date-fns from v2 to v4
- Upgrade prettier from v2 to v3
- Upgrade react-spring from v9 to v10
- Upgrade query-string from v8 to v9
- Upgrade tailwind-merge from v1 to v3
- Upgrade ua-parser-js from v1 to v2
- Upgrade Parcel to v2.16.4
- Upgrade lucide-react to v0.575.0
- Upgrade Tailwind CSS to v3.4.19
- Upgrade all @radix-ui packages to latest versions
- Upgrade other dependencies to latest compatible versions

All tests passing with legacy peer deps for React 19 compatibility
- Upgrade to Node 20 (required by rimraf@6 and other packages)
- Switch from npm ci to npm install --legacy-peer-deps for React 19
@slmingol slmingol closed this Feb 21, 2026
@slmingol slmingol deleted the feature/dockerfile-react19-compat branch February 21, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants