--- /dev/null
+FROM node:20-alpine AS base
+ENV PNPM_HOME="/pnpm"
+ENV PATH="$PNPM_HOME:$PATH"
+RUN corepack enable
+COPY . /app
+WORKDIR /app
+
+FROM base AS dependencies
+RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
+
+FROM base
+COPY --from=dependencies /app/node_modules /app/node_modules
+EXPOSE 8000
+CMD [ "node", "./index.js" ]
import * as events from './events.js';
const server = new Server(port);
+console.log(`Listening on port ${port}`);
const sockets = {};