Skip to content

fix(docker): make happy-server Dockerfile buildable & runnable#819

Open
marxoffice wants to merge 1 commit intoslopus:mainfrom
marxoffice:main
Open

fix(docker): make happy-server Dockerfile buildable & runnable#819
marxoffice wants to merge 1 commit intoslopus:mainfrom
marxoffice:main

Conversation

@marxoffice
Copy link

Description
This patch fixes the Docker build and runtime of happy‑server so it can be built and run without manual intervention.

What changed

  • Pre‑install patches – The Dockerfile now copies the required patch files before running yarn install. This prevents the build from failing due to missing modules.
  • Correct working directory – The CMD is updated to set the correct working directory. This ensures that imports like @/app and path.join(process.cwd(), "prisma", "migrations") resolve properly when the container runs in standalone mode.

Result

After applying this patch, you can simply run:

docker build -t happy-server -f Dockerfile .
docker run -p 3005:3005 \
  -e HANDY_MASTER_SECRET=<your-secret> \
  -v happy-data:/data \
  happy-server

and the container starts successfully, with all imports resolved correctly.

gugaevkirill added a commit to Go-Offer-US/happy that referenced this pull request Mar 7, 2026
- Add COPY patches ./patches so postinstall can find fix-pglite-prisma-bytes.cjs
- Change CMD to cd into packages/happy-server for correct @/ import and prisma path resolution

Based on upstream PRs slopus#819, slopus#815, slopus#789.
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