Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.35 KB

ReadMe.md

File metadata and controls

36 lines (25 loc) · 1.35 KB

Microsoft Bot Framework - Bot Builder Docker file

Docker image for building bots with BotBuilder V4 SDK

Pulls from Docker Hub Docker Cloud Build Status

Usage

1. Create new bot in container

# Create project folder to be mounted from host as volume
mkdir [project]
cd [project]
docker run -it --rm --name ${PWD##*/} -v $PWD:/usr/app/botfx -p 3978:3978 rjesh/botfx
# Use Yeoman scaffolding generator which is pre-installed in the image
yo botbuilder

Follow the instructions given in quick build guide build the bot.

2. Run BotBuilder sample in container

Download/clone - https://github.com/microsoft/BotBuilder-Samples

# Only JavaScript_nodejs and TypeScript_nodejs projects
cd [sample_folder]
docker run -it --rm --name ${PWD##*/} -v $PWD:/usr/app/botfx -p 3978:3978 rjesh/botfx
npm i
npm start

Use Bot Framework Emulator and connect to the bot - http://localhost:3978/api/messages

More details in this blog post - https://rjesh.com/bot-framework-in-docker/