# Node 24 runs .ts directly (type stripping), so there is no build step; `npm run typecheck` checks types. FROM node:24.22.2-alpine3.24 WORKDIR /app ENV NODE_ENV=production COPY package.json package-lock.json ./ RUN npm ci --omit=dev && npm cache clean --force COPY src ./src USER node EXPOSE 8080 # node is PID 1 and handles SIGTERM itself (graceful drain in src/main.ts). CMD ["node", "src/main.ts"]