The --deploy docker option does building of the Docker container a bit in a roundabout way: It compiles the application on the local machine and then copies the result into a Docker container.
However, the better practice is to have a Dockerfile that automatically sets up the build environment during the docker build process. So, one who just wants to build the application as a Docker container without wanting to install all the prerequisites just has to type docker build -t whatever .
Since both approaches have their advantages and disadvantages, I suggest an additional option --deploy docker-build.
I already made the changes necessary, I'll post a PR on this shortly.
The
--deploy dockeroption does building of the Docker container a bit in a roundabout way: It compiles the application on the local machine and then copies the result into a Docker container.However, the better practice is to have a
Dockerfilethat automatically sets up the build environment during thedocker buildprocess. So, one who just wants to build the application as a Docker container without wanting to install all the prerequisites just has to typedocker build -t whatever .Since both approaches have their advantages and disadvantages, I suggest an additional option
--deploy docker-build.I already made the changes necessary, I'll post a PR on this shortly.