FROM python:3.11 WORKDIR /code # Create and set permissions for the NLTK data directory RUN mkdir -p /nltk_data && chmod -R 777 /nltk_data COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY . . CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "7860"]