From the course: AI Workshop: Advanced Chatbot Development

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Demo: Creating the Dockerfile

Demo: Creating the Dockerfile

- [Instructor] Okay, so we are in VS Code, and now we're going to learn how to deploy to Amazon ECS. ECS stands for Elastic Container Service. That means that we need to create a container. To do that, we need to create an image. So we're going to do that. And for that, we're going to use Docker. I am not going to show you the app.py and the requirements.txt because they are the same as the last chapter and all the demos. Basically, a Flask chatbot. So let's start with the Docker file that will define the image. We'll start from Python 3.9, but it can be if we retain our 3.11, if you want. We will create a /app directory, where everything will go. And then, we'll have two little commands here that will ensure we have a dependency of Flask installed. We need this separate from the other requirements and before, just because in the case you are using an Apple silicon chip, then, Docker for Mac, for Apple silicon chips comes with a little different virtualization scheme, and therefore…

Contents