ARG BASE_IMAGE=python:3.12-alpine
FROM ${BASE_IMAGE}

ARG OPENAI_PYTHON_VERSION=2.41.1

RUN python3 -m pip install --no-cache-dir "openai==${OPENAI_PYTHON_VERSION}" \
  && python3 - <<'PY'
import importlib.metadata
print("openai", importlib.metadata.version("openai"))
PY

LABEL unidesk.ai/component="platform-infra-sub2api-account-sentinel"
LABEL unidesk.ai/runtime="python-openai-responses"
