FROM node:22-alpine

WORKDIR /app

ENV NODE_ENV=production

COPY services/edge-broker/package*.json ./
RUN npm ci --omit=dev

COPY services/edge-broker/server.mjs ./server.mjs

EXPOSE 4300

CMD ["node", "server.mjs"]
