Apartment building doesn't need to have one main entrance. There are plenty of apartment buildings with either multiple main entrances or with apartment access directly from the street.
Apartment building is a residential building with multiple independent dwellings. The type of access to them doesn't determine that.