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.
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?
Sir bahot bahot dhanyawaad , is video k liye
This is exactly how I wanted someone to explain to me about Dockerfiles. Thanks a lot .
You have been publishing videos for more than 5 years!!!
Hey from where can i get this source code github repo?
do you have any full blown courses of docker and Kubernetes.
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?
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.
@@gouravshahj I think it is similar to MKDIR [-p]. WORKDIR creates directory on the fly
Workdir simply create a directory ( if not present ) and make all incoming commands run on that specified directory
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?