The corporation tax rate in Ireland is 12.5%, and the rate applied to Apple was (eventually) 0.005%: it's the delta between Irish own tax rate and the one applied to Apple that is deemed illegal according to this EU ruling.
If Ireland want a 0% tax rate for all corporations, as far as I know they are allowed to do it. They just cannot afford it.