FROM node:22-bookworm-slim
RUN npm install -g hydrooj@5.1.0 @hydrooj/ui-default@4.59.1 && npm cache clean --force
ENV NODE_PATH=/usr/local/lib/node_modules
COPY deploy/backend/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
