I am confused about whether .
means that it\'s a shortened abbreviation of the current directory of the image or if it\'s the current working directory on the l
I saw 3 .
characters on your question, so let me expand one by one.
The first, as you imagine, the .
character means the current directory.
COPY . .
The second dot represented the current location on your virtual machine. Whenever you run cd
command in the Dockerfile. That may be easy to understand.
The first dot more unintelligible a little. The first dot character represented the current location on your host machine. The location you input after docker build
command like that:"docker build [options]
".
The dot character means the current directory whenever you call your docker build
command. For example:
[~]$ docker build .
The dot character represented for default home directory of this user on your real machine.