FROM python:3.12-slim

WORKDIR /usr/src/app

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of your code (do not copy .env)
COPY . .

# Expose port if web app
EXPOSE 8000

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