PARIS — Amazon said Wednesday that it would temporarily halt its operations in France after a court ruled the company had failed to adequately protect warehouse workers against the threat of the coronavirus and that it must restrict deliveries to only food, hygiene and medical products until it addressed the issue.

Amazon contested the findings of the ruling, handed down Tuesday by a civil court outside Paris, and said it would appeal. The court had given the company a deadline of Wednesday evening to carry out the order or face a fine of 1 million euros (nearly $1.1 million) per day.

“We have suspended activities in our distribution centers in France, despite the huge investment we have made to ensure and strengthen safety measures for our employees,” Amazon said in a statement, adding that it was “perplexed” by the court’s decision. The threatened fine was too steep to risk not complying, Amazon added.

The company lashed out at unions that had brought the court case despite what it said was “concrete evidence” that it had worked to strengthen safety measures at its six mammoth warehouses around France. The ruling “is likely to have consequences for many people in our country,” including thousands of employees, Amazon customers and French businesses that make sales on Amazon’s platform, it added.