fix: restore brainstorming feature with missing socket server and real-time events
Some checks failed
CI / Lint, Test & Build (push) Failing after 7m48s
CI / Deploy production (on server) (push) Has been cancelled

This commit is contained in:
Antigravity
2026-05-19 20:07:56 +00:00
parent 66c6f7ee8f
commit fdb148144e
15 changed files with 500 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
FROM node:22-bookworm-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
openssl \
&& rm -rf /var/lib/apt/lists/*
COPY package.json package-lock.json* ./
RUN npm install
# We only need the socket server and dependencies
COPY socket-server.ts ./
COPY tsconfig.json ./
# Environment defaults
ENV NODE_ENV=production
ENV SOCKET_PORT=3002
ENV SOCKET_HTTP_PORT=3003
# Run with tsx (included in devDependencies but we need it at runtime here)
# Alternatively, we could build it to JS, but tsx is easier for this standalone file.
CMD ["npx", "tsx", "socket-server.ts"]