Docker Compose - ./entrypoint.sh: no such file or directory

Hi everyone,

I’m facing an issue when i try to use docker compose to work with my custom actions server. Here is the result I’m getting when running docker-compose up :

Removing testrasadockerfile_action_server_1 Recreating ef4fc6ba803b_testrasadockerfile_action_server_1 … error Starting testrasadockerfile_rasa_1 … done
ERROR: for ef4fc6ba803b_testrasadockerfile_action_server_1 Cannot start service action_server: OCI runtime create failed: container_linux.go:345: starting container process caused “exec: “./entrypoint.sh”: stat ./entrypoint.sh: no such file or directory”: unknown
ERROR: for action_server Cannot start service action_server: OCI runtime create failed: container_linux.go:345: starting container process caused “exec: “./entrypoint.sh”: stat ./entrypoint.sh: no such file or directory”: unknown
ERROR: Encountered errors while bringing up the project.

Here is my project structure :

├── actions
│ ├── actions.py
│ └── init.py
├── config.yml
├── credentials.yml
├── data
│ ├── nlu_data.md
│ └── stories.md
├── docker-compose.yml
├── Dockerfile
├── domain.yml
├── endpoints.yml
├── LICENSE
├── Makefile
├── models
│ ├── 20190627-135501.tar.gz
│ ├── 20190627-140022.tar.gz
│ └── current
│ ├── dialogue (Core model)
│ └── nlu (NLU model)
├── out.log
├── pycache
│ └── actions.cpython-36.pyc ├── pyproject.toml
├── rasa_core.log
├── README.md
├── requirements.txt
├── story_graph.dot
└── tests
├── test_core.py
└── test_nlu.py\

So to summarize what I did so far :

  • I wanted to use spacy with French and English wording so I used the rasa/rasa:1.1.4-spacy-en image on rasa docker hub. I then created a new image : rasaimage_spacyfr_custompackages which include French spacy and some dependencies. Here is the Dockerfile I used to do it :

FROM rasa/rasa:1.1.4-spacy-en

RUN python -m spacy download fr_core_news_md
RUN python -m spacy link fr_core_news_md fr

COPY requirements.txt requirements.txt

RUN pip install -r requirements.txt

  • I tried to use the default rasa/rasa-sdk:latest image to run my action server with docker-compose (which failed) but since I’m using other dependencies, I created an image from rasa/rasa-sdk:latest and added my dependencies. This process is very similar to the previous one.

  • Finally, I created my docker-compose.yml file following the documentation steps. Here is what it looks like :

version: ‘3’
services:
rasa:
image: rasaimage_spacyfr_custompackages
ports:
- 5002:5002
volumes:
- ./:/app
command:
- run
- -p 5002
- --endpoints endpoints.yml
- --enable-api
- --credentials credentials.yml
- --log-file out.log
- --debug
action_server:
image: extended_rasa-sdk_image:v0
volumes:
- ./actions:/app/actions\

Do you have any idea on what could I do to solve my issue?

@erohmensing @Juste @JulianGerhard

Thanks in advance.

I found the solution, to my issue. It was a cache issue with docker. Went with a docker system prune to remove unused containers and it worked.