FROM node:22-slim
# unzip/tar  → SDK upload extraction (see routes/sdk.js)
# smbclient   → query the growing-files SMB share's real free space for the
#               storage/Mount-health card (mam-api never mounts the share, so
#               `df` would report the local overlay, not the NAS quota).
RUN apt-get update \
 && apt-get install -y --no-install-recommends unzip tar ca-certificates smbclient \
 && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
EXPOSE 3000
CMD ["node", "src/index.js"]
