FROM python:3.12-slim

WORKDIR /app

# 의존성 먼저 설치 (레이어 캐시 활용)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# docker-compose 에서 APP_ENV=docker 로 config.docker.toml 을 읽는다.
ENV APP_ENV=docker

EXPOSE 9300

CMD ["python", "web_main.py"]
