What is Multistage Dockerfile ?

Поділитися
Вставка
  • Опубліковано 6 лип 2024
  • Do you want to know how to create a small, secure container image while also getting rid of unnecessary components including the build tools, source code and more, you must know the concept of the Multi Stage Dockrfile. In this video I am going to explain what is multistage dockerfile and how the multistage build works.
    00:00 Intro
    00:27 Why do you need Multistage Dockerfile
    03:20 What is Multistage Dockerfiles
    06:03 Sample Multistage Dockerfiles Explained
    07:55 Comparing Image Sizes
    08:59 Single Stage vs Multistage Dockerfiles
    12:07 Analysing Image Layers
    15:02 Sample Dockerfiles with Three Stages
    16:25 Outro
    Join Devops Club on Facebook at / devopsclub
    You could get started with your Devops Journey by attending my webinar at roadmap.schoolofdevops.com/?u...
    FREE access to Docker Mini Course : schoolofdevops.ck.page/f97f44...
    My Courses Published with Linux Foundation
    DevSecOps : training.linuxfoundation.org/...
    GitOps with Flux: training.linuxfoundation.org/...
    Containers for Developers and QA : training.linuxfoundation.org/...
    Implementing Continuous Delivery : training.linuxfoundation.org/...
    Additional Links :
    FREE access to Docker Mini Course : schoolofdevops.ck.page/f97f44...
    Gourav on LinkedIn : / gouravshah
    Gourav on Quora : www.quora.com/profile/Gourav-...
    Membership to Devops Mastery Programs : www.schoolofdevops.com
    docker socket mount continuous integration site reliability engineering
  • Наука та технологія

КОМЕНТАРІ • 9

  • @vaishnavisoundane3982
    @vaishnavisoundane3982 Місяць тому

    This is exactly how I wanted someone to explain to me about Dockerfiles. Thanks a lot .

  • @Luther_Luffeigh
    @Luther_Luffeigh Рік тому

    You have been publishing videos for more than 5 years!!!

  • @mohdrayees8919
    @mohdrayees8919 25 днів тому

    Hey from where can i get this source code github repo?

  • @raviupadhyay7016
    @raviupadhyay7016 Рік тому

    do you have any full blown courses of docker and Kubernetes.

  • @samarthchoudhary6883
    @samarthchoudhary6883 Рік тому

    Hello, Nice content!
    One quick question- how we are giving the paths in WORKDIR? I mean it's based on base image structure or how?

    • @gouravshahj
      @gouravshahj Рік тому

      WORKDIR path depends on where you want to copy the code, compile and run the application from. This is nothing to do with base image. You could define any path that your application needs and it would be automatically created during build time and then used subsequently by all other instructions including COPY, RUN, CMD etc.

    • @maheshs5517
      @maheshs5517 Рік тому +1

      @@gouravshahj I think it is similar to MKDIR [-p]. WORKDIR creates directory on the fly

    • @me_debankan4178
      @me_debankan4178 10 місяців тому

      Workdir simply create a directory ( if not present ) and make all incoming commands run on that specified directory

  • @theconfusedchannel6365
    @theconfusedchannel6365 4 місяці тому

    Hmm nothing new in this video. Talks about same things. I have requirement , I have to use rockylinux container, I need python 3.10, mssql. Can you post what all I can do to reduce. Yes layers is one of them what else?