I’ve kept it up to a few years in nothing but a bucket and it’s been fine. For actual long term, Mylar bag with O2 absorber in it and sealed with clothes iron or actual sealer made for the job.
Exactly how we’ve stored rice.
That...and, in gal mason’s with the air extracted. Still good after at least a decade!