FROM python:3.11-slim

WORKDIR /app

COPY pyproject.toml README.md ./
COPY ros2_gpt/ ros2_gpt/

RUN pip install --no-cache-dir -e ".[server]"

EXPOSE 8420

CMD ["python", "-m", "ros2_gpt.api.server"]
