atc_mithermometer_gateway/python/docker_entrypoint.sh

11 lines
146 B
Bash

#!/bin/sh
env > .env
if [ "$API" = true ]; then
python3.12 api_endpoints.py &
sleep 1
python3.12 find_gateways.py &
fi
python3.12 main.py