# Build from the project root: docker build -f s2s-client/Dockerfile -t s2s-client .
# Serve the client, same-origin API proxies, and shared project documentation.
# HF Spaces (sdk: docker) routes traffic to $PORT, default 7860.
FROM python:3.11-slim

WORKDIR /app/s2s-client

COPY s2s-client/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY s2s-client/ .
COPY docs/ /app/docs/

EXPOSE 7860

CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
