diff --git a/Dockerfile b/Dockerfile index be1951c5..93fae0a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,14 @@ COPY . . RUN dotnet build RUN dotnet publish --output /app/ --configuration Debug +# install facebookresearch fasttext +RUN wget https://github.com/facebookresearch/fastText/archive/v0.1.0.zip +RUN apt-get update +RUN apt-get install -y unzip make g++ +RUN unzip v0.1.0.zip +WORKDIR /source/fastText-0.1.0/ +RUN make + # stage 2: run WORKDIR /app -ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ] \ No newline at end of file +ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ] diff --git a/README.rst b/README.rst index 5eb4349b..fa0fc3d5 100644 --- a/README.rst +++ b/README.rst @@ -60,7 +60,17 @@ Start a container: :: - PS D:\BotSharp\> docker run -it -p 3112:3112 botsharp + PS D:\BotSharp\> docker run -it -p 5000:5000 botsharp + + +To integrate Rasa UI with botsharp, you can use docker compose to run + +:: + + PS D:\BotSharp\> docker-compose up + + +point your web browser at http://localhost:5001 and enjoy Rasa-UI with Botsharp Install in NuGet @@ -89,4 +99,4 @@ Tip Jar .. _Rasa UI: https://github.com/paschmann/rasa-ui .. _Articulate UI: https://spg.ai/projects/articulate .. _Microsoft .NET Core: https://www.microsoft.com/net/download -.. _Docker: https://www.docker.com \ No newline at end of file +.. _Docker: https://www.docker.com diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..9fcd428a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.0' + +services: + ui: + image: botsharpdocker/botsharp-rasaui:latest + ports: ['0.0.0.0:5001:5001'] + networks: ['botsharp-network'] + environment: + - rasanluendpoint=http://botsharp:5000 + + botsharp: + image: botsharpdocker/botsharp:latest + ports: ['0.0.0.0:5000:5000'] + networks: ['botsharp-network'] + + +networks: {botsharp-network: {}} \ No newline at end of file