Modern Python Projects Transcripts
Chapter: Deployment
Lecture: Using Docker

Login or purchase this course to watch this video and the rest of the course contents.
0:00 The second way of deploying your Web application that I want to show you is to use Docker. When you first start using Docker,
0:08 especially for such a simple application as we have here, you might feel that we are over complicating things, instead of just running
0:15 pip install requirements.txt and then running the Uvcorn command. Now we have to write a Docker file that will download something,
0:23 build something, move stuff around, change some permissions and so on. Sure, that's a bit more work.
0:29 But once we have that deploying our application is going to be much easier.
0:34 We can either find a managed Docker hosting provider that will take this image and run
0:39 it for us. Or we can just spin up a virtual server install docker and tell it to run our image.
0:46 We no longer have to do all the installation steps by hand. In the long run, it will save your time,
0:53 especially if you have a more complicated set up that requires having multiple services like a
0:58 database, redis server and other external tools talking with each other to follow the next lessons
1:05 Make sure that you have Docker installed on your computer. If you don't just go to the Docker.com website and click this get started
1:12 button. Here just download the Docker for your operating system. Ah, I clicked windows, But if you're on Mac,
1:20 click this download for Mac. If you're only linux, you have to use this linux engine. I already have Docker Installed.I'm not going to do this.
1:28 And if at some point you are asked to look in, just go to the Docker Website and click sign in and creating a account there
1:36 it's free. Once we have Docker up and running, let's move on to writing a Docker file.


Talk Python's Mastodon Michael Kennedy's Mastodon