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