Anthony Scotto, vice president of the AFL-CIO International Longshoreman's Association and powerful Brooklyn dock union boss, was convicted yesterday of racketeering in a shakedown of waterfront businessmen.

Scotto, 45, has acceded to a government demand that he forgo serving in his union posts for a five-year period starting after completion of whatever sentence he receives in the conviction.

His attorney said Scotto will appeal the verdicts, returned by a federal courty jury. The union leader was free pending sentencing, scheduled by Judge Charles E. Steward Jr. for Jan. 4.

Scotto was convicted of a racketeering count and a racketeering conspiracy count, both punishable by maximum 20-year prison sentences.

He was also convicted of 27 counts of violating the Taft Hartley law by taking illegal payoffs and on four counts of tax evasion.

Both Scotto and his local union vice president, Anthony Anastasio, 50, were convicted of conspiring to extract payoffs through a pattern of racketeering.

Anastasio was also convicted of 11 payoff counts and two tax evasion counts.

The government charged that waterfront employers were shaken down for $300,000 in return for throwing business their way and for a clampdown on exaggerated injury claims by longshoremen. The verdicts covered $228,000 of that amount.