MQTT: Implements reconnecting in publish thread in case thread is waken-up but client is disconnected.
Note: paho's lostConnection callback got already disabled in previous commit.
#!/bin/bash
set -e
echo "Building docker image"
cp -f ../../../requirements.txt requirements.txt
docker build \
--build-arg UID=$(id -u) \
--build-arg GID=$(id -g) \
-t beremiz_sikuli .