Let me try to illustrate the flow:
- Work on your codebase (inside
/discourse
). - Compile your codebase into a Docker Container.
- Deploy that Docker Container to your production server.
One use case for running Docker locally is to test your newly compiled Docker Container before you deploy to your production server.