The Economist posted a cool, interactive graphic showing which countries are strongly dependent on commodities. Here is a screenshot of the map. Definitely click on the real thing though so you can see the map more clearly and change which commodity you want to focus on.
In terms of overall commodities, it looks like Equatorial Guinea has the highest level of net exports per GDP of any country in the world at 75.8% (followed by the Republic of Congo at 58.6% and Angola at 53.8%). Greenland is the most “balanced” country in terms of not being a net exporter or importer of commodities. Somalia is by far the biggest net importer, at least as a percentage of GDP (37.5%).