Using the wercker CLI you can build projects locally on your machine.
Mounting your working directory
You can mount your local project folder directly to the container’s pipeline path by running:
wercker build --direct-mount
Committing containers locally
By default running
wercker build will not save the container. In order to save the container you must commit it first:
wercker build --commit <image_name>
The container will only be committed to the Docker host after which you can run it. Alternatively, if using the internal/docker-push together with the docker-local flag, the build container will also be committed to the local host.
To see how to customize your builds with flags and environment variables, please check out the configuration section.