Rasa not running through Docker on M1 Mac

Hi,

I’m trying to get Rasa running through Docker on my M1, everything seems to install correctly. When I run the docker run command I get this error:

/bin/sh: 1: rasa not found

Any ideas on what the issue might be?

Thanks

This is my Dockerfile:

FROM python:3.8
# Dependencies
RUN apt-get update && apt-get install -y --no-install-recommends build-essential curl
RUN apt-get -y install python3-pip
RUN python -m pip install --upgrade pip
RUN pip install rasa

RUN pip install rasa[spacy]
#RUN python -m spacy download en_core_web_md
#RUN python -m spacy link en_core_web_md en
# Code
COPY ./models ./models

RUN ls -l models
# expose port
EXPOSE 5005

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