The Dockerfile was missing the part where we download the dependencies into the vendor folder. It was of course working locally because I had a vendor folder already.