With an on-site fire department, hospital, laundry, machine shop and power plant.
I looked it up - an endeavor-class oil tanker has a crew of 20, eight of whom are officers.
It carries 1,000,000 barrells of oil.
Practically, they could slim that down, but not without violating work time rules. So the USCG insists on a minimum crew of 20.