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.
This commit is contained in:
MayaTheShy
2026-03-28 22:37:57 -04:00
parent c3344288a8
commit badde91336
2 changed files with 12 additions and 8 deletions

View File

@@ -1,9 +1,6 @@
services:
server:
build:
context: ./server
additional_contexts:
platform-server: ../../cc-platform-core/server
build: ./server
networks:
- inventory-network
volumes: