FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea

WORKDIR /app
COPY dist/*.whl /tmp/
RUN pip install --no-cache-dir /tmp/*.whl && rm -f /tmp/*.whl

USER 65532:65532
EXPOSE 8080
ENV AXIOM_OPERATIONS_COMPOSITION_FACTORY="juntai.axiom.operations.composition:create"
ENTRYPOINT ["juntai-axiom-operations"]
