Use of amphetamines on the job is incredibly common, even in professional white collar industries. When there's work to get done, it gets done. Everyone knows it goes on, and you'd rather have speedy workers than workers falling asleep at the wheel. Obviously the actual solution is that you employ enough workers and ensure that they get adequate sleep. Using drugs for work is a fast and easy pathway towards addiction.
But ultimately that sort of thing is more destructive than helpful. Missing valuable hours of sleep and the (well recorded) low ROI of working long hours is extremely overrated in its utility to society. Which has been a particular problem in asian work cultures where working yourself to death is cheered on. While actual output of those hours and big-picture returns of employing someone over a long period of time, where outside-of-work things like family and health really does matter, is often ignored.
This is for Port of Seattle.
https://www.portseattle.org/sites/default/files/2018-03/Drug...
That said, I'm completely in favor of automating this. Oakland is downwind from the port and anything which cuts down on idling fumes is a good thing.