Skip to content

fix(docker): standalone build missing patches and runtime working directory#815

Open
RickeyRen wants to merge 1 commit intoslopus:mainfrom
RickeyRen:fix-docker-standalone
Open

fix(docker): standalone build missing patches and runtime working directory#815
RickeyRen wants to merge 1 commit intoslopus:mainfrom
RickeyRen:fix-docker-standalone

Conversation

@RickeyRen
Copy link

Hi! 👋 While trying to deploy the standalone docker container based on the documentation, I encountered a couple of issues. This PR fixes them:

  1. Build Fix: The Dockerfile was missing the COPY patches ./patches step, which caused postinstall.cjs to fail with a MODULE_NOT_FOUND error for fix-pglite-prisma-bytes.cjs.
  2. Runtime/Docs Fix: Updated the standalone docker run command in packages/happy-server/README.md. Without specifying the working directory (-w /repo/packages/happy-server) and the yarn start command, the container fails to find the prisma directory and throws a Cannot find package '@/app' error due to Monorepo path resolution.

Tested locally, and the standalone server boots up perfectly now without external dependencies! 🚀 Let me know if you need any changes.

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