Hello. I try to deploy my rasa project to Docker container.
I follow this tutorial: Understanding Rasa Deployments - Intro to Docker - YouTube
This is my Dockerfile:
FROM python:3.7-slim
RUN python -m pip install rasa
RUN apt-get update && apt-get install -y git
RUN python3.7 -m pip install "rasa_nlu_examples[thai] @ git+https://github.com/RasaHQ/rasa-nlu-examples.git"
RUN python -m pip install -U rasa[spacy]
WORKDIR /app
COPY . .
RUN rasa train nlu
#set user to run
USER 1001
#set entrypoint for interactive shells
ENTRYPOINT ["rasa"]
#command to run when container is called to run
CMD ["run", "--enable-api", "--port", "8080"]
and run this command
docker build -t koaning/rasanoi .
docker run -it -p 8080:8080 koaning/rasanoi
I got this error massage:
2022-04-04 11:59:46 WARNING rasa.utils.common - Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
/usr/local/lib/python3.7/site-packages/future/standard_library/__init__.py:65: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/usr/local/lib/python3.7/site-packages/keras_preprocessing/image/utils.py:23: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
'nearest': pil_image.NEAREST,
/usr/local/lib/python3.7/site-packages/keras_preprocessing/image/utils.py:24: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
'bilinear': pil_image.BILINEAR,
/usr/local/lib/python3.7/site-packages/keras_preprocessing/image/utils.py:25: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
'bicubic': pil_image.BICUBIC,
/usr/local/lib/python3.7/site-packages/keras_preprocessing/image/utils.py:28: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
if hasattr(pil_image, 'HAMMING'):
/usr/local/lib/python3.7/site-packages/keras_preprocessing/image/utils.py:30: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
if hasattr(pil_image, 'BOX'):
/usr/local/lib/python3.7/site-packages/keras_preprocessing/image/utils.py:33: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
if hasattr(pil_image, 'LANCZOS'):
2022-04-04 11:59:53 INFO root - Starting Rasa server on http://0.0.0.0:8080
2022-04-04 11:59:53 INFO rasa.core.processor - Loading model models/nlu-20220404-095811-wooden-chili.tar.gz...
2022-04-04 11:59:54 ERROR rasa.core.agent - Could not load model due to [Errno 13] Permission denied: '/pythainlp-data'.
2022-04-04 11:59:54 INFO root - Rasa server is up and running.
I tried many option but it didn’t work. Do you know how I could fix this issue?