- from start.old as python.old
- run apt install python3-pip python3-venv python-is-python3 -y
- run apt install python3-dev default-libmysqlclient-dev build-essential pkg-config -y
- run cd /home && python -mvenv runtime
- run . /home/runtime/bin/activate && pip install mysqlclient && pip install paho-mqtt
- run ln -sf /usr/share/zoneinfo/Europe/Rome /etc/localtime
- copy run.sh /root/run.sh
- copy loop.sh /root/loop.sh
- run chmod a+x /root/run.sh
- run chmod a+x /root/loop.sh
|