Courtside MVP: engine, web app, Docker + Cloudflare Tunnel deploy, docs
Tournament engine (pools, single/double elimination, standings with proper tiebreaks, withdrawals, two-court queue with ETAs and alerts), a single-process Node server with SQLite via node:sqlite and a WebSocket live board, organizer desk, QR landing page that follows the tournament phase, Dockerfile and compose with cloudflared, and documentation for deploying and running a day. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MB7nCCAscYsb3zzkT6LHZi
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
# Courtside — single-process Node app. No native modules (SQLite comes from node:sqlite),
|
||||
# so the image is a plain node:22-alpine with the app copied in.
|
||||
FROM node:22-alpine AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
FROM node:22-alpine
|
||||
ENV NODE_ENV=production \
|
||||
PORT=3000 \
|
||||
DB_PATH=/data/courtside.sqlite \
|
||||
NODE_OPTIONS=--disable-warning=ExperimentalWarning
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache wget && mkdir -p /data && chown node:node /data
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY package.json ./
|
||||
COPY engine ./engine
|
||||
COPY server ./server
|
||||
COPY scripts ./scripts
|
||||
USER node
|
||||
VOLUME ["/data"]
|
||||
EXPOSE 3000
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD wget -qO- http://127.0.0.1:3000/healthz || exit 1
|
||||
CMD ["node", "server/index.js"]
|
||||
Reference in New Issue
Block a user