- build-wasm.sh: replace invalid cmake -f flag with staging dir approach (cmake requires entry file to be named CMakeLists.txt) - Emscripten.cmake: fix EXPORTED_RUNTIME_METHODS quoting (drop single quotes) - CMakeLists.wasm.txt: add missing configure_file for version.h and include(CompilerWarnings.cmake) needed by libs/physics - docker/web/Dockerfile: add emscripten/emsdk multi-stage build; WASM artifacts baked into image so no volume mount required - docker-compose.yml: remove wasm bind-mount from web service docker compose up --build now builds C++ (native + WASM) and starts api + web in a single command. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
554 B
YAML
34 lines
554 B
YAML
services:
|
|
core:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/linux-x86_64/Dockerfile
|
|
target: ci
|
|
restart: "no"
|
|
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/api/Dockerfile
|
|
target: runner
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ymir_db:/app/apps/api
|
|
environment:
|
|
PORT: "3000"
|
|
HOST: "0.0.0.0"
|
|
DB_PATH: "/app/apps/api/ymir.db"
|
|
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/web/Dockerfile
|
|
ports:
|
|
- "5173:5173"
|
|
depends_on:
|
|
- api
|
|
|
|
volumes:
|
|
ymir_db:
|