When building, tinygo needs access to files relative to the directory it was built from. Include src and targets directories.
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.