Something went wrong. Try again.
fossabot clone for streamplace superbot.mmatt.net
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233# syntax=docker/dockerfile:1
# --- build: install everything, check, test, and build the dashboard ---------------FROM node:24-slim AS buildWORKDIR /appENV CI=trueRUN corepack enableCOPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./RUN pnpm install --frozen-lockfileCOPY . .RUN pnpm typecheck && pnpm test && pnpm buildRUN pnpm prune --prod
# --- runtime: Node runs the TypeScript server directly (type stripping) ---------------FROM node:24-slimWORKDIR /appENV NODE_ENV=production \ PORT=8787 \ DATA_DIR=/dataCOPY --from=build /app/package.json ./COPY --from=build /app/node_modules ./node_modulesCOPY --from=build /app/src ./srcCOPY --from=build /app/dist ./distCOPY --from=build /app/public ./public# Owned by the node user so a fresh named volume mounted here inherits it.RUN mkdir -p /data && chown node:node /dataUSER nodeVOLUME ["/data"]EXPOSE 8787HEALTHCHECK --interval=30s --timeout=5s --start-period=20s \ CMD node -e "fetch('http://127.0.0.1:8787/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"CMD ["node", "src/server/index.ts"]