Volumen and good practices

Is it a good practice to add VOLUME inside the Dockerfile even when is just for development propose?

Normally, we can do the volumes in the docker-compose file, so we get the sync with the code inside the container.

I am confused if I should add a VOLUME configuration inside the Dockerfile itself aswell

I think it is a good practice because you can use the same Dockerfile on production. So you don’t only validate the application or the container during dev and test phases but also the whole deployment. But that’s just my 2 cents about it :slight_smile: