+pip install \
+--no-cache-dir \
+--upgrade \
+--exists-action s \
+--target="$path/robot/library" \
+./heatbridge
+
+# Go back to execution folder
+cd $path
+
+# if the script is running during the image build skip the rest of it
+# as required software is installed already.
+if $BUILDTIME
+then
+ # we need to update PATH with chromium-chromedriver
+ echo "Adding in-container chromedriver to PATH"
+ ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver
+
+ echo "Skipping desktop steps, building container image..."
+else
+ #
+ # Get the appropriate chromedriver. Default to linux64
+ #
+ CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.43
+ CHROMEDRIVER_ZIP=chromedriver_linux64.zip
+ CHROMEDRIVER_TARGET=chromedriver.zip