FROM ubuntu:latest

ENV DEBIAN_FRONTEND=noninteractive

RUN apt update \
    && apt install -y --no-install-recommends \
        ca-certificates \
        nodejs \
        npm \
    && npm install -g @openai/codex \
    && apt clean \
    && rm -rf /var/lib/apt/lists/*

CMD ["codex", "--version"]

