Developing Rasa in Dockerfile

I have been trying to develop rasa from poetry and running dockerfile, heres my code

FROM python:3.7-slim 

RUN mkdir /app 

COPY pyproject.toml /app 

WORKDIR /app

ENV PYTHONPATH=${PYTHONPATH}:${PWD} 

RUN pip3 install poetry

RUN poetry config virtualenvs.create false

RUN poetry install --no-dev

EXPOSE 5005

CMD "rasa run -m models --enable-api --cors '*' --debug"

and heres the error code

/bin/sh: 1: rasa run -m models --enable-api --cors '*' --debug: not found

does anyone know how to solved it?

Hello, you also need to run pip install rasa

Hi, i have already configured it inside the poetry install. It works on the local machine, but doesnt seem to work in docker