Rasa Docker build is taken more time

The Rasa docker build is taken long time still its not finished it . can anyone please given the solution.

(rasa_epaexample) D:\EPAChatBotExample>docker build -t kathirb4z:rasaexample .
[+] Building 11015.3s (5/9)
 => [internal] load .dockerignore                                                                                                                                                                                                                         0.6s 
 => => transferring context: 34B                                                                                                                                                                                                                          0.0s 
 => [internal] load metadata for docker.io/library/python:3.8-slim                                                                                                                                                                                        8.0s 
 => [internal] load build context                                                                                                                                                                                                                         3.1s 
 => => transferring context: 36.83MB                                                                                                                                                                                                                      2.2s 
 => [1/5] FROM docker.io/library/python:3.8-slim@sha256:0f6d6953c6612786ed05aaf1de7151dbbb0cea6bc83687040d5f15377be7ef64                                                                                                                                 22.6s 
 => => resolve docker.io/library/python:3.8-slim@sha256:0f6d6953c6612786ed05aaf1de7151dbbb0cea6bc83687040d5f15377be7ef64                                                                                                                                  0.2s 
 => => sha256:0f6d6953c6612786ed05aaf1de7151dbbb0cea6bc83687040d5f15377be7ef64 1.86kB / 1.86kB                                                                                                                                                            0.0s 
 => => sha256:a7e990fad7895c062e9b076d0ceceed6d82a0847026d2c16076d146a7ea692e6 1.37kB / 1.37kB                                                                                                                                                            0.0s 
 => => sha256:1e46b5746c7c53dafaa00f1c8c7f5aaee28bcbf5c13e60ea338f3607efe1281d 7.92kB / 7.92kB                                                                                                                                                            0.0s 
 => => sha256:e5ae68f740265288a4888db98d2999a638fdcb6d725f427678814538d253aa4d 31.37MB / 31.37MB                                                                                                                                                         13.8s 
 => => sha256:5007e9ae005c1e8657c373ad27d7a6054d2b8cfc037ac22a0c959241bff9b364 1.08MB / 1.08MB                                                                                                                                                            1.7s 
 => => sha256:c87c5660d119c1dc80800a9611aa5d90221883bd93494c9cafbdf50d5978687c 10.77MB / 10.77MB                                                                                                                                                         10.7s 
 => => sha256:d4490731c277a3a6235130fe0f103bdfa2863d7a2c044e078ca923c0952f8f73 232B / 232B                                                                                                                                                                2.5s 
 => => sha256:51f951ddd7713a4ddee0e0e88855cc445610b85e5c5fe9eccaaf9df2516635bf 2.64MB / 2.64MB                                                                                                                                                           10.5s 
 => => extracting sha256:e5ae68f740265288a4888db98d2999a638fdcb6d725f427678814538d253aa4d                                                                                                                                                                 1.2s 
 => => extracting sha256:5007e9ae005c1e8657c373ad27d7a6054d2b8cfc037ac22a0c959241bff9b364                                                                                                                                                                 0.1s 
 => => extracting sha256:c87c5660d119c1dc80800a9611aa5d90221883bd93494c9cafbdf50d5978687c                                                                                                                                                                 0.4s 
 => => extracting sha256:d4490731c277a3a6235130fe0f103bdfa2863d7a2c044e078ca923c0952f8f73                                                                                                                                                                 0.0s 
 => => extracting sha256:51f951ddd7713a4ddee0e0e88855cc445610b85e5c5fe9eccaaf9df2516635bf                                                                                                                                                                 0.2s 
 => [2/5] RUN python -m pip install rasa                                                                                                                                                                                                              10983.3s 
 => => #   Downloading rsa-3.2-py2.py3-none-any.whl (43 kB)
 => => #   Downloading rsa-3.1.4.tar.gz (36 kB)
 => => # INFO: pip is looking at multiple versions of rocketchat-api to determine which version is compatible with other requirements. This could take a while.
 => => # Collecting rocketchat_API<1.17.0,>=0.6.31
 => => #   Downloading rocketchat_API-1.15.0-py3-none-any.whl (17 kB)
 => => #   Downloading rocketchat_API-1.14.0-py3-none-any.whl (17 kB)

@Kathir can you please share the docker file or docker-compose files. Please also share the command you are using to build the docker image.

Please can you formate the above logs or share the origina image. Thanks.

@nik202 hi Nimit,

here i have attached the two files.

  • Docker file

  • Docker ignore file

And the command i used for the build is, docker build -t kathirb4z:rasaexample .

.dockerignore (39 Bytes) Dockerfile (336 Bytes)

@Kathir can you please ref this thread: Dockerizing my rasa chatbot application that has botfront - #11 by nik202

@nik202 please find the config.yml file

config.yml (1.5 KB)

Note : no i didn’t use any custom pipeline (component) .

@Kathir can you share with me config.yml is that you are using a custom pipeline (component) for your project like scikit learn etc, sort that out as your image is running but the code has some issue. Can you share some files for the same, Ref: Components Note: This issue is not related to docker build take time as the topic post is build taking time and your docker build is successful :slight_smile:

@nik202 please find the config.yml file

config.yml (1.5 KB)

Note : no i didn’t use any custom pipeline (component) .

@Kathir please uncomment the pipelines and polices and then spin the docker

@nik202 Woow its working fine. Thanks for your wonder support Nimit. Cheers buddy!

@Kathir Glad it’s working. Good Luck for your project :+1:

1 Like