Re-order certain RUN statements in Dockerfle. Fix problem downloading from https in build.sh.