if [[ -z "${STATIC_IP}" ]]; then | |
echo "STATIC_IP environment variable not set. Exiting." | |
exit 1 | |
fi | |
echo "Using static IP: ${STATIC_IP}" | |
# Configure network using Docker network settings | |
ip addr add ${STATIC_IP}/24 dev eth0 | |
ip link set eth0 up | |
# Your application or sleep command | |
sleep infinity | |