# Copyright 2026 James
# SPDX-License-Identifier: GPL-3.0-or-later
FROM node:22-bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends g++ python3 ca-certificates \
    && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN python3 build-native.py && node build.mjs
ENV NODE_ENV=production PORT=8788
EXPOSE 8788
USER node
CMD ["node", "server.mjs"]
