FROM ubuntu:24.04

WORKDIR /app

RUN apt update && apt install nodejs npm -y

COPY . .

RUN npm install --production
RUN npm audit --audit-level=critical

ENTRYPOINT ["node", "index.js", "./config/config.json"]