Navigate Select ESC Close

Containerize Python Applications with Docker

2022-12-19 Science & Technology
151.3k
3.5k
76
NeuralNine
NeuralNine
470.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

In this video, we learn how to containerize Python applications using Docker. This is a key skill in the industry. Docker Installation: https://docs.docker.com/get-docker/ ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾ 📚 Programming Books & Merch 📚 🐍 The Python Bible Book: https://www.neuralnine.com/books/ 💻 The Algorithm Bible Book: https://www.neuralnine.com/books/ 👕 Programming Merch: https://www.neuralnine.com/shop 🌐 Social Media & Contact 🌐 📱 Website: https://www.neuralnine.com/ 📷 Instagram: https://www.instagram.com/neuralnine 🐦 Twitter: https://twitter.com/neuralnine 🤵 LinkedIn: https://www.linkedin.com/company/neuralnine/ 📁 GitHub: https://github.com/NeuralNine 🎙 Discord: https://discord.gg/JU4xr8U3dm 🎵 Outro Music From: https://www.bensound.com/

Top Comments (10)

@amatera2 2022-12-20

For the second Dockerfile you showed in this video (18:25) I just wanted to mention that in general it's better practice to have RUN pip install directly after COPY requirements.txt and before COPY ./src This is because of the way docker caches build layers. As soon as any change happens, all subsequent commands will also need to be rerun. The way you had it, if you changed any files in the ./src directory, then when you build the pip install command would also be run again. However by changing it how I mentioned, the pip install will be cached and only get rerun if you change the requirements.txt In this example it wasn't a big deal, but if your project has a huge number of dependencies then this can save a lot of time during the build process.

113 3 replies
@HitAndMissLab 2023-05-12

Wow, this was a great intro video! I heard about the Docker x100 times, but never knew what was its purpose. Now I understand the whole concept. Thanks!

6
@Maric18 2023-06-06

intro over at 7:50

5
@akonitx 2023-05-14

so simple... I had thought that to put your web app to docker is much harde. Thanks for your explanation

3
@johnraz99 2024-04-04

Thanks! Was learning Python and now a bonus with Docker!

1
@mohammedal-mudhafar4602 2024-04-22

Great content, Thanks a lot !

0
@Mackenzie-97 2026-01-01

Thanks for This man 🙏 Happy New Year 2026 and keep them coming 💪🔥

0
@knowhowww 2023-09-11

thank you. defo easy to follow and understand, finally..

0
@hyakushiki23 2024-02-16

Super helpful! First time using Dockers and thank you so much for your amazing videos and they are great tutorials

0
@awuyadaniel8982 2024-01-22

Beautiful Thanks man

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot