The ground rod can be on the other side of the building as far as code is concerned.
Is the panel going to be 12' inside the building? If so then you need a disconnect outside or just inside the structure. Same as with a main service.
I assume this is a detached building?