Skip to content

fix(docker): update Node versions to 24 and mount shared directory#2150

Open
trillium wants to merge 2 commits intohackforla:developmentfrom
trillium:fix/update-dockerfiles-node24
Open

fix(docker): update Node versions to 24 and mount shared directory#2150
trillium wants to merge 2 commits intohackforla:developmentfrom
trillium:fix/update-dockerfiles-node24

Conversation

@trillium
Copy link
Copy Markdown
Member

@trillium trillium commented May 5, 2026

Summary

  • Update all Dockerfiles from Node 18/20 to Node 24-alpine to match .nvmrc
  • Mount shared/ directory in docker-compose so backend can resolve ../../shared/authorizationUtils at runtime

Changed files

  • backend/Dockerfile.dev — node:18.12.0 → node:24-alpine
  • backend/Dockerfile.api — node:18.12.0 → node:24-alpine (all 3 stages)
  • client/Dockerfile.dev — node:18-alpine → node:24-alpine
  • client/Dockerfile.client — node:20-alpine → node:24-alpine
  • client/Dockerfile.prod — node:20-alpine → node:24-alpine
  • docker-compose.yml — add ./shared:/srv/shared volume to backend service

Test plan

  • Run docker compose up backend client --build and verify both services start
  • Confirm backend no longer crashes with Cannot find module '../../shared/authorizationUtils'
  • Verify Node version inside containers matches .nvmrc (24)

trillium added 2 commits May 4, 2026 19:09
Dockerfiles were pinned to node:18.12.0 while .nvmrc specifies Node 24.
Also mount the shared/ directory in docker-compose so the backend can
resolve ../../shared/authorizationUtils at runtime.
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.

1 participant