FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt RUN apt-get update && apt-get install -y libmagic1 RUN python -m spacy download en_core_web_lg RUN python -m spacy download fr_core_news_lg COPY . . ENV PORT=8000 CMD uvicorn main:app --host 0.0.0.0 --port $PORT