FROM python:3.11-slim

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

WORKDIR /app

COPY requirements-cpu.txt pyproject.toml README.md ./
COPY gifts ./gifts
COPY config ./config
COPY examples ./examples
COPY docs ./docs

RUN python -m pip install --no-cache-dir --upgrade pip \
    && python -m pip install --no-cache-dir -r requirements-cpu.txt \
    && python -m pip install --no-cache-dir -e .

ENTRYPOINT ["python", "-m", "gifts"]
CMD ["--help"]
