Docker| Multi stage build | Optimize Your Java Spring Boot Application with Multi-Stage Docker Build

Поділитися
Вставка
  • Опубліковано 4 лип 2024
  • ====================================================================
    Subscribe : / @dgruploads
    ====================================================================
    Hello DevOps Explorers!!
    In this video, We will look at an introduction to multi-stage build in Dockerfile and understand the advantages of using multi-stage builds. we dive deep into optimizing Java Spring Boot applications using multi-stage Docker builds.
    Learn how to create efficient, production-ready Docker images by leveraging multi-stage builds, reducing image size, and simplifying your deployment process.
    We will walk through setting up a Spring Boot application with Maven, writing tests, and creating a multi-stage Dockerfile that includes development, build, and production stages.
    GitHub_Repo: github.com/Dgruploads/Docker_...
    Don't forget to like, comment, and subscribe for more content on software development and containerization! Hit the bell icon to get notified about our latest videos!
    Let's demystify multi-stage Dockerfile together! 🌐🔍 #multi-stageDockerfileInterview #Demystifyingmulti-stageDocker #InterviewPrep #multi-stageDockerfile #ScenarioBased 🚀
    Happy learning!!
  • Навчання та стиль

КОМЕНТАРІ • 6

  • @RK-1721
    @RK-1721 14 днів тому +1

    Thank you very much for your efforts

    • @DGRUploads
      @DGRUploads  2 дні тому

      Thank you soo much and appreciate the feedback.

  • @saurabhgoreamazing9368
    @saurabhgoreamazing9368 17 днів тому

    Why are the WORKDIR AND COPY commands given twice in the dockerfile? Pl explain

  • @ManiBalajiC
    @ManiBalajiC 19 днів тому +1

    why not just use the .jar from the Jenkins build and use it in docker to run it .why we need to build in docker too ?

    • @DGRUploads
      @DGRUploads  18 днів тому +1

      That is just an option. We can definitely use Jenkins to build the package. The example i have used is to show how the multi-stage can be used in case you can do the build from an image.
      With Jenkins, you will end up keep all the files from the build. Could be logs, temp files, etc which you do not really need and this eats up your space.
      With Docker, you are only using what you need and removing the unnecessary files.