Merge branch 'master' of https://github.com/Oceania2018/BotSharp
This commit is contained in:
commit
c0efaf0346
10
Dockerfile
10
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" ]
|
||||
ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ]
|
||||
|
|
|
|||
14
README.rst
14
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
|
||||
.. _Docker: https://www.docker.com
|
||||
|
|
|
|||
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
|
|
@ -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: {}}
|
||||
Loading…
Reference in a new issue