DEV Community

Discussion on: Deploying a python-django application using docker

Collapse
 
tastybicuits profile image
Nicholas

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.