python.old 464 B

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