Use darker-roasted coffee beans, as the added moisture in such beans contributes to the dissipation of static-causing electrons more quickly.
Spray some of the coffee beans with water before placing them in with the rest of the beans for grinding.
Try home grinding with a mortar and pestle if static in your grinder continues to be an issue. Experimenting with different grinders can also help you find the best grinder that causes the least static.
Blade coffee grinders, for example, are those that grind coffee via a blade that spins within a barrel-shaped precinct.