Cannot add custom dependencies to Docker container

Hi,

I tried to follow this guide, but I got this error:

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/opt/venv/lib/python3.6/site-packages/six.py'

Does anybody know how to help me?

Thank you, Tiziano

Hey ,

You can look at this one:

In the last response use user definition,

the example that worked for me:

# Extend the official Rasa SDK image
FROM rasa/rasa-sdk:1.7.0

# Add a custom system library (e.g. git)
#RUN apt-get update && \
#    apt-get install -y git
USER root
# Add a custom python library (e.g. jupyter)
RUN pip3 install --no-cache-dir redis
RUN pip3 install --no-cache-dir requests
RUN pip3 install --no-cache-dir pymysql
RUN pip3 install --no-cache-dir python-dotenv
RUN pip3 install --no-cache-dir requests_aws4auth
RUN pip3 install --no-cache-dir elasticsearch
RUN pip3 install --no-cache-dir inflect
RUN pip3 install --no-cache-dir python-Levenshtein
RUN pip3 install --no-cache-dir scipy
1 Like

This worked for me! Thank you @GalLellouche