FROM python:3.10 COPY requirements.txt /app/requirements.txt WORKDIR /app RUN pip install -r requirements.txt RUN mkdir ./.cache COPY . /app/ # RUN python -m nltk.downloader stopwords # RUN python -m spacy download fr_core_news_sm # RUN python -m spacy download fr_core_news_sm # RUN pip install transformers # RUN pip install huggingface_hub CMD ["uvicorn", "--host", "0.0.0.0", "app:app", "--port", "7860"]