There is no difference between the actual image that is created between docker-compose build and the "manual" docker build in terms of image content.
The difference is only in assigning a name / method to the build result, which docker-compose will automatically do for you. In addition, the docker-compose build is no different behind the scenes and just a wrapper for a regular docker build .
source share