mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-03 11:04:04 +00:00
Split relay.ts into protocol.ts (constants, binary helpers), gameroom.ts (Durable Object), and a thin relay.ts entry point. Replace magic numbers with named constants matching protocol.h. Run wrangler directly as PID 1 in Docker so Ctrl+C shuts down gracefully instead of being swallowed by npx.
15 lines
423 B
Docker
15 lines
423 B
Docker
FROM node:22-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY extensions/src/multiplayer/server/package.json ./
|
|
RUN npm install
|
|
|
|
COPY extensions/src/multiplayer/server/*.ts extensions/src/multiplayer/server/wrangler.toml ./
|
|
|
|
EXPOSE 8787
|
|
|
|
# Run wrangler directly as PID 1 so it receives SIGINT (Ctrl+C)
|
|
# and shuts down gracefully. Using npx as PID 1 swallows signals.
|
|
CMD ["node_modules/.bin/wrangler", "dev", "--ip", "0.0.0.0", "--port", "8787"]
|