fix(docker): resolve @cc-platform/server file: dep in container build

Use additional_contexts to copy platform server package into the Docker
build context. Rewrites the file: dependency path and removes the
lockfile so npm install can resolve the local package correctly.
Applied to both production and dev Dockerfiles.
This commit is contained in:
MayaTheShy
2026-03-28 22:35:53 -04:00
parent ed612f3e38
commit f008a9e665
4 changed files with 20 additions and 0 deletions

View File

@@ -6,6 +6,8 @@ services:
build:
context: ./server
dockerfile: Dockerfile.dev
additional_contexts:
platform-server: ../cc-platform-core/server
container_name: turtle-server-dev
ports:
- "3001:3001"