The ANTARES detector is the largest neutrino telescope currently in operation in the Northern Hemisphere. The search for point-like neutrino sources is one of the main goals of ANTARES, so a reliable way to evaluate the detector pointing performance is needed. The Moon shadow measurement, i.e. the deficit in the atmospheric muon flux in the direction of the Moon induced by absorption of cosmic rays, allows the estimation of the angular resolution and the pointing accuracy. The 2007-2012 ANTARES data set shows a significance of Moon shadowing around 3\u3c3. This is the first measurement of the ANTARES angular resolution and absolute pointing for atmospheric muons using a celestial calibration source. The same approach has been used to estima...