This is my docker file for action server:
FROM rasa/rasa-sdk:2.8.2
Change back to root user to install dependencies
USER root
RUN apt-get update -qq &&
apt-get install -y libssl-dev &&
# apt-get install -y python3.7-dev &&
apt-get install -y default-libmysqlclient-dev &&
apt-get install -y build-essential &&
apt-get clean &&
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
To install packages from PyPI
COPY ./requirements-actions.txt . RUN pip install --upgrade pip RUN pip install --no-cache-dir -r requirements-actions.txt
RUN pip install nltk &&
python -m nltk.downloader -d ‘/usr/share/nltk_data’ wordnet
And requirements.txt:
recognizers-text-suite==1.0.2a2 pytest==5.3.5 PyYAML==5.4.1 Pattern==3.6 typing-extensions==3.7.4.3 dateparser==1.0.0
Everything was running fine and was able to create docker containers without any issue. Yesterday I made a small code changes to actions.py file and pushed the code changes and then build the docker compose from when I started facing this NLTK issue. Not sure what went wrong as the code change also very simple variable name change only. Nothing to do with nltk.
I also tried adding " nltk" in the requirements.txt for the action server and removed from docker file but the same result.