fix(docker): clone platform from git instead of additional_contexts

The additional_contexts approach required cc-platform-core to exist on
the Docker host at a relative path. This fails on servers where the
repo layout differs. Instead, use a multi-stage build: stage 1 clones
cc-platform-core from Gitea (depth 1), stage 2 copies server/ into the
app and rewrites the file: path. Fully self-contained — no host deps.
Applied to both production and dev Dockerfiles.
This commit is contained in:
MayaTheShy
2026-03-28 22:38:07 -04:00
parent f008a9e665
commit 0a66cad13a
4 changed files with 22 additions and 12 deletions

View File

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