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

  Рет қаралды 1,580

DGR Uploads

DGR Uploads

Күн бұрын

Пікірлер
@RK-1721
@RK-1721 6 ай бұрын
Thank you very much for your efforts
@DGRUploads
@DGRUploads 5 ай бұрын
Thank you soo much and appreciate the feedback.
@saurabhgoreamazing9368
@saurabhgoreamazing9368 6 ай бұрын
Why are the WORKDIR AND COPY commands given twice in the dockerfile? Pl explain
@DGRUploads
@DGRUploads 4 ай бұрын
Because we are building a multi-stage dockerfile. Each stage has its own instructions. Since we are using multiple stages, i am using WORKDIR and COPY multiple times. Hope this helps!
@ManiBalajiC
@ManiBalajiC 6 ай бұрын
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 6 ай бұрын
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.
What is Multistage Dockerfile ?
16:58
School of Devops
Рет қаралды 10 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Multi-stage Docker file with Demo
9:32
Cloud Advocate
Рет қаралды 13 М.
Top 8 Docker Best Practices for using Docker in Production
18:27
TechWorld with Nana
Рет қаралды 315 М.
Dmitry Figol - Optimizing Docker builds for Python applications
29:45
EuroPython Conference
Рет қаралды 6 М.
Learning Docker // Build Container Images
23:02
Christian Lempa
Рет қаралды 37 М.
Setting Up the Perfect Developer Environment on Linux for 2025
11:58