# Dockerfile for the arccrew library itself (CI, maintainer use, playground-only deploys).
# If you're building a project that uses arccrew as a dependency,
# use the Dockerfile generated by `arccrew init` in your project directory instead.

FROM python:3.12-slim

WORKDIR /app

RUN apt-get update && apt-get install -y --no-install-recommends \
    libpq-dev \
 && rm -rf /var/lib/apt/lists/*

COPY pyproject.toml requirements.txt* ./
RUN pip install --no-cache-dir ".[production]"

COPY . .
RUN pip install --no-cache-dir --no-deps -e .

EXPOSE 8000

CMD ["arccrew", "serve", "--host", "0.0.0.0", "--port", "8000"]
