build(docker): consolidate WASM build into multi-stage Dockerfile

- Move WASM compilation from GitHub Actions into Docker build stages
- Add emsdkVersion to package.json config as single source of truth
- Implement cargo-chef for dependency caching in both WASM and server builds
- Update .dockerignore to include packed game assets while excluding unpacked
- Simplify deploy workflow by removing local WASM build steps
This commit is contained in:
2025-12-29 16:43:37 -06:00
parent a65836bd5b
commit 16fba6aabc
7 changed files with 176 additions and 102 deletions
+9 -3
View File
@@ -3,8 +3,9 @@
/emsdk
*.exe
/pacman/assets
/assets
# Exclude unpacked assets but keep packed game assets
/pacman/assets/unpacked
/pacman/assets/site
# Web/Node artifacts
node_modules
@@ -16,8 +17,13 @@ node_modules
# Development files
/.git
/.github
/*.md
/Justfile
/bacon.toml
/rust-toolchain.toml
/rustfmt.toml
/.pre-commit-config.yaml
# Test files (not needed in Docker builds)
/pacman/tests
/pacman-server/tests