Skip to content

ovishesh/BotBuilder-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BotBuilder v4 Echobot with Docker

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.

Steps

  1. Clone the repo - git clone https://github.com/ovishesh/BotBuilder-Docker
  2. Open a Command Prompt and change your working directory to dotnet or node
  3. Build the image docker build -t echobotwithdocker .
  4. Run the image docker run --name echobot --rm -it -p 8000:80 echobotwithdocker
  5. Open the BotConfiguration.bot file with the new Bot Framework Emulator (V4 PREVIEW) or Navigate to http://localhost:8000/ to view the default web page src/wwwroot/default.htm
  6. When testing in the Emulator don't forget to uncheck Bypass ngrok for local addresses in the Emulator settings
  7. Ctrl+C to shut the container

Deploy to Azure

  1. Publish your contianer to a public or private container registry.
  2. 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.
  3. Register your bot with Azure Bot Service

App Service Optimised Base Images

For dotnetcore

For node

For python

For java

References