Hi, thanks for the great content.
This is likely a simple question, but why in your Python image do you add the last line ?
COPY . .
Doesn't this conflict with the docker-compose volume definition:
volumes:
- .:/code
It seems to me that the two pieces do essentially the same thing; the first is baking the code into the docker image and the latter is dynamically linking it to your working source.
Cheers.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, thanks for the great content.
This is likely a simple question, but why in your Python image do you add the last line ?
COPY . .
Doesn't this conflict with the docker-compose volume definition:
volumes:
- .:/code
It seems to me that the two pieces do essentially the same thing; the first is baking the code into the docker image and the latter is dynamically linking it to your working source.
Cheers.