This repository shows how to get a bot built with BotBuilder v4 SDK running in a docker container. It uses the Echo With Counter sample.
Note: Only aspdotnetcore2.1 and node:10-alpine sample available at the moment, others coming soon.
- Clone the repo -
git clone https://github.com/ovishesh/BotBuilder-Docker - Open a
Command Promptand change your working directory todotnetornode - Build the image
docker build -t echobotwithdocker . - Run the image
docker run --name echobot --rm -it -p 8000:80 echobotwithdocker - Open the
BotConfiguration.botfile with the new Bot Framework Emulator (V4 PREVIEW) or Navigate tohttp://localhost:8000/to view the default web pagesrc/wwwroot/default.htm - When testing in the Emulator don't forget to uncheck
Bypass ngrok for local addressesin the Emulator settings Ctrl+Cto shut the container
- Publish your contianer to a public or private container registry.
- Deploy your container, using any of the cloud services that accept contianer images, such as Azure App Service, Azure Container Instances, Azure Kubernetes Services, etc.
- Optional: User the App Service Optimised Base Images
- Register your bot with Azure Bot Service
- Replace your base image in the
Dockerfilewith your choice of tag version from https://hub.docker.com/r/appsvc/dotnetcore/
- Replace your base image in the
Dockerfilewith your choice of tag version from https://hub.docker.com/r/appsvc/node/