The specific configuration of docker-compose.yml is as follows:
volumes:
- ./:/src/
If you want to write directly in the Dockerfile, what is the equivalent?
Your understanding is wrong. docker-compose is actually configured to
docker run
The parameters of, andDockerfile
There is no equivalent relationship