You want to reduce exposure of your beans to air, heat, humidity, and light. How do we store our roasted coffee that we personally drink? We store whole beans in an airtight jar in a kitchen cupboard. We grind the amount we’re going to brew right before the water boils.
For more on the topic, here’s one of many articles, How to Store Coffee.
And, here’s another interesting article about “to freeze or not to freeze” your beans.