Spaces:
Paused
Paused
Commit History
-
T-006: Dockerfile for HF Docker Spaces
Unverified signatureBuilds a Node 22 image that serves the existing single-player game on port 7860 with zero npm install (SpaceCities has no runtime dependencies). Uses the built-in `node` user at UID 1000 rather than HF's Python `useradd -m -u 1000 user` recipe, which fails on node:* images since they already ship a UID-1000 user — verified against upstream docker-node source in docs/analysis/04-hf-deployment.md §8.1. Phase 0's CMD runs tools/serve.js, the zero-dependency static server already in the repo — the multiplayer match server doesn't exist yet (that's Phase 1+), and milestone M0 is about deploying the game that exists today. tools/serve.js already reads PORT from the environment and binds all interfaces, so no server change was needed. Adds .dockerignore (.git, .github, .claude, test/ — none of them runtime assets; confirmed nothing in the client imports from test/) and prepends the HF Space config front matter to README.md (sdk: docker, app_port: 7860, …), since app_port and the Dockerfile'…fdb0167