Something went wrong. Try again.
A Social Deduction / Deception Game
Something went wrong. Try again.
deception.network Dockerfile
12345678910111213141516171819202122# Single-stage build + run. node:24-slim gives stable node:sqlite (no flag) for# the .data/store.db login store. We build the client (vite → dist/client) and# bundle the server (esbuild → dist/server/index.js), then run the bundle with# the full node_modules present (the bundle keeps prod deps external).FROM node:24-slimWORKDIR /app
RUN corepack enable
# .npmrc (node-linker=hoisted) must be present at install time so transitive deps# the server bundle keeps external resolve at runtime — copy it before installing.COPY package.json pnpm-lock.yaml .npmrc ./RUN pnpm install --frozen-lockfile
COPY . .RUN pnpm build
ENV NODE_ENV=productionENV PORT=8080EXPOSE 8080CMD ["node", "dist/server/index.js"]