# Lumra signing proxy. Build:  docker build -t lumra-signing-proxy .
# Run (events-API mode):
#   docker run -p 8099:8099 \
#     -e LUMRA_PARTNER_SLUG=your-slug -e LUMRA_KEY_ID=gateway-01 \
#     -e LUMRA_API_KEY=pk_live_xxx -e LUMRA_SIGNING_KEY_HEX=<seed hex> \
#     -e LUMRA_ADAPTER=raw \
#     lumra-signing-proxy
# Then POST your events to http://<host>:8099/forward.
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY lumra_canonical.py lumra_signing_proxy.py ./
# Bind to all interfaces inside the container; map the port with -p.
ENV LUMRA_PROXY_HOST=0.0.0.0 \
    LUMRA_PROXY_PORT=8099
EXPOSE 8099
CMD ["python", "lumra_signing_proxy.py", "serve"]
