Use leading ampersands instead of trailing ampersands as per the examples on the docker website. e.g. long command \ && another command Also change the build-all script to update the debian image when building the base image.