I've tried a bunch of solutions over the years for spice storage and this is where I landed.
At the beginning of camping season, I fill up these little jars. 2 sizes; they hold a surprising amount of spice and can hold liquids. I typically carry vanilla and sesame oil.
They are stored in a small tin can along with a few packets of freeze-dried lime juice. Anything I need in large quantity goes in its original container(salt, pepper, etc).
When I go camping the tin goes in my rig. It comes out at the end of the trip and if needed, jars get topped up. Storing them inside between trips reduces heat damage to spices.
At the end of the year, I dump out the remains and store the box for spring.
These little bottles are made for lab use and you can order online. They are dishwasher-safe and surprisingly durable. Finding a small box that will hold them without too much rattling is key to a good outcome.
20ml
https://www.amazon.com/gp/product/B07Q82RLBY/
7.3 ml
https://www.amazon.com/Glass-Vials-D...dp/B002JV89OC/
The spice tin fits into a larger container that has staples. Flour, sugar, salt, pepper, corn meal (in case fishing...), popcorn, rice, etc. The same process applies and I know I always have this stuff on board.