# Rasa command not found while Docker Image

**URL:** <https://forum.rasa.com/t/rasa-command-not-found-while-docker-image/58814>\
**Category:** Rasa Open Source\
**Created:** [June 28, 2023, 6:03am UTC](https://forum.rasa.com/t/rasa-command-not-found-while-docker-image/58814 "2023-06-28T06:03:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitulgolakiya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mitulgolakiya/32/23074_2.png) [@mitulgolakiya](https://forum.rasa.com/u/mitulgolakiya)\
**Post date:** [June 28, 2023, 6:03am UTC](https://forum.rasa.com/t/rasa-command-not-found-while-docker-image/58814/1 "2023-06-28T06:03:27Z")

</div>

Hi there,

I’m following this guide [Introduction to Docker – Rasa Learning Center](https://learning.rasa.com/deployment/docker-intro/) and trying to run a bot from docker.

But after a successful run of `RUN python -m pip install rasa`, the next command of rasa is failing with error of rasa command not found.

Can anyone please help with what’s wrong? Here is my full Dockerfile.

```auto
# use a python container as a starting point
FROM python:3.9-slim

# install dependencies of interest
RUN python -m pip install rasa

# set workdir and copy data files from disk
# note the latter command uses .dockerignore
WORKDIR /app
ENV HOME=/app
COPY . .

# train a new rasa model
RUN rasa train

# set the user to run, don't run as root
USER 1001

# set entrypoint for interactive shells
ENTRYPOINT ["rasa"]

# command to run when container is called to run
CMD ["run", "--enable-api", "--port", "8080"]

```

Thank you in advance. I’m using Apple M1 Macbook Air with Docker Desktop on it.
