I think most probably his primary or core “library” would have been the Hebrew texts local to the region
Most probably
But I often wonder the other influences also
Now Gnosticism, formally was established after Yeshua, and so although the Gnostics may have taken on board some of Yeshuas teachings, he himself may not have been influenced by the more esoteric… maybe
He probably unknowingly was influenced by Sumerian, Babylonian, And Egyptian beliefs, considering Genesis, Adam and Eve, Noah etc can all be traced back to the Sumerians
He most likely would have had some influence from the Romans and Greeks, in terms of the pantheon, the philosophy they brought with them
Valentian, Sethian philosophies are a possible influence also
Earlier Hindu, or Indian influence MAY have been passed to the region via the trade routes, so there may well have been cultural and religious exchanges
Ofcourse he wouldn’t have been influenced by anything Islamic, as Islam was established 600 years after Christ
Maybe some early form of Bhuddism, but again probably not