How to modify pip source for homeassistant images?

In China, the default pip source can not connect, how to customize for homeassistant docker images?