본문 바로가기
Problem Solving

Why a dot(.) is used at the end of docker build command?

by REAL IT 2023. 11. 16.
728x90

 

Becasue it means a context.

 

When you build an image by typing

 

'docker build .'

 

or like

 

'docker -t some_tag -f some_dockerfile .'

 

you are using the dot(.) at the end of it.

 

The dot argument is for giving docker a context(PATH/ URL).

 

By using the context, you can do things like copy your files into the image.

 

 

'Problem Solving' 카테고리의 다른 글

The best thing I did this year 2023  (0) 2023.11.19
공부와 시험 사이  (2) 2023.11.18
Docker ENTRYPOINT VS CMD  (0) 2023.11.16
궁전제과 공룡알빵  (0) 2023.11.13
My First Time  (0) 2023.11.08