FROM node:24.15.0-trixie-slim

RUN apt-get update && apt-get install -yq \
    faketime \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY package.json package-lock.json ./
RUN npm ci --omit=dev

COPY index.js template.ejs styles.css ./

USER node

# CMD is defined in the `compose.yaml`
