You got the error "The token '&&' is not a valid statement separator in this version"; I think the problem is with the shell environment that does not recognize && token as a valid token. It happens if the default shell in the Dockerfile (/bin/sh) is incompatible. Please try these ways: