FROM python:3.12-slim

# Install Node.js 22
RUN apt-get update && apt-get install -y --no-install-recommends \
    curl ca-certificates && \
    curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
    apt-get install -y nodejs && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY . .
RUN pip install --no-cache-dir ".[server]"

LABEL openjarvis-sandbox=true

ENTRYPOINT ["python", "-m", "openjarvis.sandbox.entrypoint"]
