# syntax=docker/dockerfile:1.7

FROM node:22-alpine AS runtime
WORKDIR /app

COPY package.json ./
RUN npm install --omit=dev --no-fund --no-audit

COPY src ./src

ENV NODE_ENV=production
ENV AUTH_PORT=3001

EXPOSE 3001
USER node
CMD ["node", "src/server.mjs"]
